Changes in tests/alloc2.cfa [ea561c9:1b55756]
- File:
-
- 1 edited
-
tests/alloc2.cfa (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tests/alloc2.cfa
rea561c9 r1b55756 16 16 bool passed = (malloc_size(ip) == size) && (malloc_usable_size(ip) >= size) && (malloc_alignment(ip) == align) && ((uintptr_t)ip % align == 0); 17 17 if (!passed) { 18 printf("failed test %3d: %4 zu %4zu but got %4zu ( %3zu ) %4zu\n", tests_total, size, align, malloc_size(ip), malloc_usable_size(ip), malloc_alignment(ip));18 printf("failed test %3d: %4lu %4lu but got %4lu ( %3lu ) %4lu\n", tests_total, size, align, malloc_size(ip), malloc_usable_size(ip), malloc_alignment(ip)); 19 19 tests_failed += 1; 20 20 }
Note:
See TracChangeset
for help on using the changeset viewer.