Changes in tests/malloc.cfa [f76ff0b:68f0c4e]
- File:
-
- 1 edited
-
tests/malloc.cfa (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/malloc.cfa
rf76ff0b r68f0c4e 252 252 253 253 ip = (int *) (void *) malloc( size ); 254 ip = (int *) (void *) resize( (void *) ip, libAlign, size / 2 );255 test_base(ip, size / 2, libAlign);256 test_use(ip);257 free(ip);258 259 ip = (int *) (void *) aligned_alloc( align, size );260 ip = (int *) (void *) resize( (void *) ip, align, size / 2 );261 test_base(ip, size / 2, align);262 test_use(ip);263 free(ip);264 265 ip = (int *) (void *) malloc( size );266 254 ip = (int *) (void *) resize( (void *) ip, align, size / 4 ); 267 255 test_base(ip, size / 4, align); … … 282 270 ip = (int *) (void *) resize( 0p, align, size ); 283 271 test_base(ip, size, align); 284 test_use(ip);285 free(ip);286 287 ip = (int *) (void *) calloc( dim, elemSize );288 ip = (int *) (void *) realloc( (void *) ip, libAlign, size / 2 );289 test_base(ip, size / 2, libAlign);290 test_fill(ip, 0, size / 2, '\0');291 test_use(ip);292 free(ip);293 294 ip = (int *) (void *) cmemalign( align, dim, elemSize );295 ip = (int *) (void *) realloc( (void *) ip, align, size / 2 );296 test_base(ip, size / 2, align);297 test_fill(ip, 0, size / 2, '\0');298 272 test_use(ip); 299 273 free(ip); … … 463 437 else printf("failed CFA malloc tests : %d/%d\n\n", tests_failed, tests_total); 464 438 465 // testing CFA malloc with aligned struct439 // testing CFA malloc 466 440 467 441 elemSize = sizeof(T1); … … 544 518 free(tp); 545 519 520 /* 546 521 tp = realloc( (T1*)0p, size ); 547 test_base(tp, size , tAlign );548 test_use(tp);522 est_base(tp, size , tAlign ); 523 est_use(tp); 549 524 free(tp); 550 525 551 526 tp = realloc( (T1*)0p, size ); 552 test_base(tp, size, tAlign ); 553 test_use(tp); 554 free(tp); 527 est_base(tp, size, tAlign ); 528 est_use(tp); 529 free(tp); 530 */ 555 531 556 532 tp = memalign( align );
Note:
See TracChangeset
for help on using the changeset viewer.