| @@ -240,7 +240,7 @@ static void test_seal_addseal(void) · 239 unmodified lines |
| 240 | 240 | ret = sys_mseal(ptr, size); |
| 241 | 241 | FAIL_TEST_IF_FALSE(!ret); |
| 242 | 242 | |
| 243 | | − TEST_END_CHECK(); |
| 243 | + REPORT_TEST_PASS(); |
| 244 | 244 | } |
| 245 | 245 | |
| 246 | 246 | static void test_seal_unmapped_start(void) |
| @@ -268,7 +268,7 @@ static void test_seal_unmapped_start(void) · 21 unmodified lines |
| 268 | 268 | ret = sys_mseal(ptr + 2 * page_size, 2 * page_size); |
| 269 | 269 | FAIL_TEST_IF_FALSE(!ret); |
| 270 | 270 | |
| 271 | | − TEST_END_CHECK(); |
| 271 | + REPORT_TEST_PASS(); |
| 272 | 272 | } |
| 273 | 273 | |
| 274 | 274 | static void test_seal_unmapped_middle(void) |
| @@ -300,7 +300,7 @@ static void test_seal_unmapped_middle(void) · 25 unmodified lines |
| 300 | 300 | ret = sys_mseal(ptr + 3 * page_size, page_size); |
| 301 | 301 | FAIL_TEST_IF_FALSE(!ret); |
| 302 | 302 | |
| 303 | | − TEST_END_CHECK(); |
| 303 | + REPORT_TEST_PASS(); |
| 304 | 304 | } |
| 305 | 305 | |
| 306 | 306 | static void test_seal_unmapped_end(void) |
| @@ -329,7 +329,7 @@ static void test_seal_unmapped_end(void) · 22 unmodified lines |
| 329 | 329 | ret = sys_mseal(ptr, 2 * page_size); |
| 330 | 330 | FAIL_TEST_IF_FALSE(!ret); |
| 331 | 331 | |
| 332 | | − TEST_END_CHECK(); |
| 332 | + REPORT_TEST_PASS(); |
| 333 | 333 | } |
| 334 | 334 | |
| 335 | 335 | static void test_seal_multiple_vmas(void) |
| @@ -360,7 +360,7 @@ static void test_seal_multiple_vmas(void) · 24 unmodified lines |
| 360 | 360 | ret = sys_mseal(ptr, size); |
| 361 | 361 | FAIL_TEST_IF_FALSE(!ret); |
| 362 | 362 | |
| 363 | | − TEST_END_CHECK(); |
| 363 | + REPORT_TEST_PASS(); |
| 364 | 364 | } |
| 365 | 365 | |
| 366 | 366 | static void test_seal_split_start(void) |
| @@ -385,7 +385,7 @@ static void test_seal_split_start(void) · 18 unmodified lines |
| 385 | 385 | ret = sys_mseal(ptr + page_size, 3 * page_size); |
| 386 | 386 | FAIL_TEST_IF_FALSE(!ret); |
| 387 | 387 | |
| 388 | | − TEST_END_CHECK(); |
| 388 | + REPORT_TEST_PASS(); |
| 389 | 389 | } |
| 390 | 390 | |
| 391 | 391 | static void test_seal_split_end(void) |
| @@ -410,7 +410,7 @@ static void test_seal_split_end(void) · 18 unmodified lines |
| 410 | 410 | ret = sys_mseal(ptr, 3 * page_size); |
| 411 | 411 | FAIL_TEST_IF_FALSE(!ret); |
| 412 | 412 | |
| 413 | | − TEST_END_CHECK(); |
| 413 | + REPORT_TEST_PASS(); |
| 414 | 414 | } |
| 415 | 415 | |
| 416 | 416 | static void test_seal_invalid_input(void) |
| @@ -445,7 +445,7 @@ static void test_seal_invalid_input(void) · 28 unmodified lines |
| 445 | 445 | ret = sys_mseal(ptr - page_size, 5 * page_size); |
| 446 | 446 | FAIL_TEST_IF_FALSE(ret < 0); |
| 447 | 447 | |
| 448 | | − TEST_END_CHECK(); |
| 448 | + REPORT_TEST_PASS(); |
| 449 | 449 | } |
| 450 | 450 | |
| 451 | 451 | static void test_seal_zero_length(void) |
| @@ -469,7 +469,7 @@ static void test_seal_zero_length(void) · 17 unmodified lines |
| 469 | 469 | ret = sys_mprotect(ptr, size, PROT_READ | PROT_WRITE); |
| 470 | 470 | FAIL_TEST_IF_FALSE(!ret); |
| 471 | 471 | |
| 472 | | − TEST_END_CHECK(); |
| 472 | + REPORT_TEST_PASS(); |
| 473 | 473 | } |
| 474 | 474 | |
| 475 | 475 | static void test_seal_zero_address(void) |
| @@ -495,7 +495,7 @@ static void test_seal_zero_address(void) · 19 unmodified lines |
| 495 | 495 | ret = sys_mprotect(ptr, size, PROT_READ | PROT_WRITE); |
| 496 | 496 | FAIL_TEST_IF_FALSE(ret); |
| 497 | 497 | |
| 498 | | − TEST_END_CHECK(); |
| 498 | + REPORT_TEST_PASS(); |
| 499 | 499 | } |
| 500 | 500 | |
| 501 | 501 | static void test_seal_twice(void) |
| @@ -515,7 +515,7 @@ static void test_seal_twice(void) · 13 unmodified lines |
| 515 | 515 | ret = sys_mseal(ptr, size); |
| 516 | 516 | FAIL_TEST_IF_FALSE(!ret); |
| 517 | 517 | |
| 518 | | − TEST_END_CHECK(); |
| 518 | + REPORT_TEST_PASS(); |
| 519 | 519 | } |
| 520 | 520 | |
| 521 | 521 | static void test_seal_mprotect(bool seal) |
| @@ -539,7 +539,7 @@ static void test_seal_mprotect(bool seal) · 17 unmodified lines |
| 539 | 539 | else |
| 540 | 540 | FAIL_TEST_IF_FALSE(!ret); |
| 541 | 541 | |
| 542 | | − TEST_END_CHECK(); |
| 542 | + REPORT_TEST_PASS(); |
| 543 | 543 | } |
| 544 | 544 | |
| 545 | 545 | static void test_seal_start_mprotect(bool seal) |
| @@ -569,7 +569,7 @@ static void test_seal_start_mprotect(bool seal) · 23 unmodified lines |
| 569 | 569 | PROT_READ | PROT_WRITE); |
| 570 | 570 | FAIL_TEST_IF_FALSE(!ret); |
| 571 | 571 | |
| 572 | | − TEST_END_CHECK(); |
| 572 | + REPORT_TEST_PASS(); |
| 573 | 573 | } |
| 574 | 574 | |
| 575 | 575 | static void test_seal_end_mprotect(bool seal) |
| @@ -599,7 +599,7 @@ static void test_seal_end_mprotect(bool seal) · 23 unmodified lines |
| 599 | 599 | else |
| 600 | 600 | FAIL_TEST_IF_FALSE(!ret); |
| 601 | 601 | |
| 602 | | − TEST_END_CHECK(); |
| 602 | + REPORT_TEST_PASS(); |
| 603 | 603 | } |
| 604 | 604 | |
| 605 | 605 | static void test_seal_mprotect_unalign_len(bool seal) |
| @@ -628,7 +628,7 @@ static void test_seal_mprotect_unalign_len(bool seal) · 22 unmodified lines |
| 628 | 628 | PROT_READ | PROT_WRITE); |
| 629 | 629 | FAIL_TEST_IF_FALSE(!ret); |
| 630 | 630 | |
| 631 | | − TEST_END_CHECK(); |
| 631 | + REPORT_TEST_PASS(); |
| 632 | 632 | } |
| 633 | 633 | |
| 634 | 634 | static void test_seal_mprotect_unalign_len_variant_2(bool seal) |
| @@ -656,7 +656,7 @@ static void test_seal_mprotect_unalign_len_variant_2(bool seal) · 21 unmodified lines |
| 656 | 656 | PROT_READ | PROT_WRITE); |
| 657 | 657 | FAIL_TEST_IF_FALSE(!ret); |
| 658 | 658 | |
| 659 | | − TEST_END_CHECK(); |
| 659 | + REPORT_TEST_PASS(); |
| 660 | 660 | } |
| 661 | 661 | |
| 662 | 662 | static void test_seal_mprotect_two_vma(bool seal) |
| @@ -691,7 +691,7 @@ static void test_seal_mprotect_two_vma(bool seal) · 28 unmodified lines |
| 691 | 691 | else |
| 692 | 692 | FAIL_TEST_IF_FALSE(!ret); |
| 693 | 693 | |
| 694 | | − TEST_END_CHECK(); |
| 694 | + REPORT_TEST_PASS(); |
| 695 | 695 | } |
| 696 | 696 | |
| 697 | 697 | static void test_seal_mprotect_two_vma_with_split(bool seal) |
| @@ -738,7 +738,7 @@ static void test_seal_mprotect_two_vma_with_split(bool seal) · 40 unmodified lines |
| 738 | 738 | PROT_READ | PROT_WRITE); |
| 739 | 739 | FAIL_TEST_IF_FALSE(!ret); |
| 740 | 740 | |
| 741 | | − TEST_END_CHECK(); |
| 741 | + REPORT_TEST_PASS(); |
| 742 | 742 | } |
| 743 | 743 | |
| 744 | 744 | static void test_seal_mprotect_partial_mprotect(bool seal) |
| @@ -764,7 +764,7 @@ static void test_seal_mprotect_partial_mprotect(bool seal) · 19 unmodified lines |
| 764 | 764 | else |
| 765 | 765 | FAIL_TEST_IF_FALSE(!ret); |
| 766 | 766 | |
| 767 | | − TEST_END_CHECK(); |
| 767 | + REPORT_TEST_PASS(); |
| 768 | 768 | } |
| 769 | 769 | |
| 770 | 770 | static void test_seal_mprotect_two_vma_with_gap(bool seal) |
| @@ -807,7 +807,7 @@ static void test_seal_mprotect_two_vma_with_gap(bool seal) · 36 unmodified lines |
| 807 | 807 | ret = sys_mprotect(ptr + 3 * page_size, page_size, PROT_READ); |
| 808 | 808 | FAIL_TEST_IF_FALSE(ret == 0); |
| 809 | 809 | |
| 810 | | − TEST_END_CHECK(); |
| 810 | + REPORT_TEST_PASS(); |
| 811 | 811 | } |
| 812 | 812 | |
| 813 | 813 | static void test_seal_mprotect_split(bool seal) |
| @@ -844,7 +844,7 @@ static void test_seal_mprotect_split(bool seal) · 30 unmodified lines |
| 844 | 844 | else |
| 845 | 845 | FAIL_TEST_IF_FALSE(!ret); |
| 846 | 846 | |
| 847 | | − TEST_END_CHECK(); |
| 847 | + REPORT_TEST_PASS(); |
| 848 | 848 | } |
| 849 | 849 | |
| 850 | 850 | static void test_seal_mprotect_merge(bool seal) |
| @@ -878,7 +878,7 @@ static void test_seal_mprotect_merge(bool seal) · 27 unmodified lines |
| 878 | 878 | ret = sys_mprotect(ptr + 2 * page_size, 2 * page_size, PROT_READ); |
| 879 | 879 | FAIL_TEST_IF_FALSE(ret == 0); |
| 880 | 880 | |
| 881 | | − TEST_END_CHECK(); |
| 881 | + REPORT_TEST_PASS(); |
| 882 | 882 | } |
| 883 | 883 | |
| 884 | 884 | static void test_seal_munmap(bool seal) |
| @@ -903,7 +903,7 @@ static void test_seal_munmap(bool seal) · 18 unmodified lines |
| 903 | 903 | else |
| 904 | 904 | FAIL_TEST_IF_FALSE(!ret); |
| 905 | 905 | |
| 906 | | − TEST_END_CHECK(); |
| 906 | + REPORT_TEST_PASS(); |
| 907 | 907 | } |
| 908 | 908 | |
| 909 | 909 | /* |
| @@ -943,7 +943,7 @@ static void test_seal_munmap_two_vma(bool seal) · 33 unmodified lines |
| 943 | 943 | else |
| 944 | 944 | FAIL_TEST_IF_FALSE(!ret); |
| 945 | 945 | |
| 946 | | − TEST_END_CHECK(); |
| 946 | + REPORT_TEST_PASS(); |
| 947 | 947 | } |
| 948 | 948 | |
| 949 | 949 | /* |
| @@ -981,7 +981,7 @@ static void test_seal_munmap_vma_with_gap(bool seal) · 31 unmodified lines |
| 981 | 981 | ret = sys_munmap(ptr, size); |
| 982 | 982 | FAIL_TEST_IF_FALSE(!ret); |
| 983 | 983 | |
| 984 | | − TEST_END_CHECK(); |
| 984 | + REPORT_TEST_PASS(); |
| 985 | 985 | } |
| 986 | 986 | |
| 987 | 987 | static void test_munmap_start_freed(bool seal) |
| @@ -1021,7 +1021,7 @@ static void test_munmap_start_freed(bool seal) · 33 unmodified lines |
| 1021 | 1021 | FAIL_TEST_IF_FALSE(size == 0); |
| 1022 | 1022 | } |
| 1023 | 1023 | |
| 1024 | | − TEST_END_CHECK(); |
| 1024 | + REPORT_TEST_PASS(); |
| 1025 | 1025 | } |
| 1026 | 1026 | |
| 1027 | 1027 | static void test_munmap_end_freed(bool seal) |
| @@ -1051,7 +1051,7 @@ static void test_munmap_end_freed(bool seal) · 23 unmodified lines |
| 1051 | 1051 | else |
| 1052 | 1052 | FAIL_TEST_IF_FALSE(!ret); |
| 1053 | 1053 | |
| 1054 | | − TEST_END_CHECK(); |
| 1054 | + REPORT_TEST_PASS(); |
| 1055 | 1055 | } |
| 1056 | 1056 | |
| 1057 | 1057 | static void test_munmap_middle_freed(bool seal) |
| @@ -1095,7 +1095,7 @@ static void test_munmap_middle_freed(bool seal) · 37 unmodified lines |
| 1095 | 1095 | FAIL_TEST_IF_FALSE(size == 0); |
| 1096 | 1096 | } |
| 1097 | 1097 | |
| 1098 | | − TEST_END_CHECK(); |
| 1098 | + REPORT_TEST_PASS(); |
| 1099 | 1099 | } |
| 1100 | 1100 | |
| 1101 | 1101 | static void test_seal_mremap_shrink(bool seal) |
| @@ -1124,7 +1124,7 @@ static void test_seal_mremap_shrink(bool seal) · 22 unmodified lines |
| 1124 | 1124 | |
| 1125 | 1125 | } |
| 1126 | 1126 | |
| 1127 | | − TEST_END_CHECK(); |
| 1127 | + REPORT_TEST_PASS(); |
| 1128 | 1128 | } |
| 1129 | 1129 | |
| 1130 | 1130 | static void test_seal_mremap_expand(bool seal) |
| @@ -1156,7 +1156,7 @@ static void test_seal_mremap_expand(bool seal) · 25 unmodified lines |
| 1156 | 1156 | |
| 1157 | 1157 | } |
| 1158 | 1158 | |
| 1159 | | − TEST_END_CHECK(); |
| 1159 | + REPORT_TEST_PASS(); |
| 1160 | 1160 | } |
| 1161 | 1161 | |
| 1162 | 1162 | static void test_seal_mremap_move(bool seal) |
| @@ -1189,7 +1189,7 @@ static void test_seal_mremap_move(bool seal) · 26 unmodified lines |
| 1189 | 1189 | |
| 1190 | 1190 | } |
| 1191 | 1191 | |
| 1192 | | − TEST_END_CHECK(); |
| 1192 | + REPORT_TEST_PASS(); |
| 1193 | 1193 | } |
| 1194 | 1194 | |
| 1195 | 1195 | static void test_seal_mmap_overwrite_prot(bool seal) |
| @@ -1217,7 +1217,7 @@ static void test_seal_mmap_overwrite_prot(bool seal) · 21 unmodified lines |
| 1217 | 1217 | } else |
| 1218 | 1218 | FAIL_TEST_IF_FALSE(ret2 == ptr); |
| 1219 | 1219 | |
| 1220 | | − TEST_END_CHECK(); |
| 1220 | + REPORT_TEST_PASS(); |
| 1221 | 1221 | } |
| 1222 | 1222 | |
| 1223 | 1223 | static void test_seal_mmap_expand(bool seal) |
| @@ -1248,7 +1248,7 @@ static void test_seal_mmap_expand(bool seal) · 24 unmodified lines |
| 1248 | 1248 | } else |
| 1249 | 1249 | FAIL_TEST_IF_FALSE(ret2 == ptr); |
| 1250 | 1250 | |
| 1251 | | − TEST_END_CHECK(); |
| 1251 | + REPORT_TEST_PASS(); |
| 1252 | 1252 | } |
| 1253 | 1253 | |
| 1254 | 1254 | static void test_seal_mmap_shrink(bool seal) |
| @@ -1276,7 +1276,7 @@ static void test_seal_mmap_shrink(bool seal) · 21 unmodified lines |
| 1276 | 1276 | } else |
| 1277 | 1277 | FAIL_TEST_IF_FALSE(ret2 == ptr); |
| 1278 | 1278 | |
| 1279 | | − TEST_END_CHECK(); |
| 1279 | + REPORT_TEST_PASS(); |
| 1280 | 1280 | } |
| 1281 | 1281 | |
| 1282 | 1282 | static void test_seal_mremap_shrink_fixed(bool seal) |
| @@ -1307,7 +1307,7 @@ static void test_seal_mremap_shrink_fixed(bool seal) · 24 unmodified lines |
| 1307 | 1307 | } else |
| 1308 | 1308 | FAIL_TEST_IF_FALSE(ret2 == newAddr); |
| 1309 | 1309 | |
| 1310 | | − TEST_END_CHECK(); |
| 1310 | + REPORT_TEST_PASS(); |
| 1311 | 1311 | } |
| 1312 | 1312 | |
| 1313 | 1313 | static void test_seal_mremap_expand_fixed(bool seal) |
| @@ -1338,7 +1338,7 @@ static void test_seal_mremap_expand_fixed(bool seal) · 24 unmodified lines |
| 1338 | 1338 | } else |
| 1339 | 1339 | FAIL_TEST_IF_FALSE(ret2 == newAddr); |
| 1340 | 1340 | |
| 1341 | | − TEST_END_CHECK(); |
| 1341 | + REPORT_TEST_PASS(); |
| 1342 | 1342 | } |
| 1343 | 1343 | |
| 1344 | 1344 | static void test_seal_mremap_move_fixed(bool seal) |
| @@ -1368,7 +1368,7 @@ static void test_seal_mremap_move_fixed(bool seal) · 23 unmodified lines |
| 1368 | 1368 | } else |
| 1369 | 1369 | FAIL_TEST_IF_FALSE(ret2 == newAddr); |
| 1370 | 1370 | |
| 1371 | | − TEST_END_CHECK(); |
| 1371 | + REPORT_TEST_PASS(); |
| 1372 | 1372 | } |
| 1373 | 1373 | |
| 1374 | 1374 | static void test_seal_mremap_move_fixed_zero(bool seal) |
| @@ -1400,7 +1400,7 @@ static void test_seal_mremap_move_fixed_zero(bool seal) · 25 unmodified lines |
| 1400 | 1400 | |
| 1401 | 1401 | } |
| 1402 | 1402 | |
| 1403 | | − TEST_END_CHECK(); |
| 1403 | + REPORT_TEST_PASS(); |
| 1404 | 1404 | } |
| 1405 | 1405 | |
| 1406 | 1406 | static void test_seal_mremap_move_dontunmap(bool seal) |
| @@ -1429,7 +1429,7 @@ static void test_seal_mremap_move_dontunmap(bool seal) · 22 unmodified lines |
| 1429 | 1429 | |
| 1430 | 1430 | } |
| 1431 | 1431 | |
| 1432 | | − TEST_END_CHECK(); |
| 1432 | + REPORT_TEST_PASS(); |
| 1433 | 1433 | } |
| 1434 | 1434 | |
| 1435 | 1435 | static void test_seal_mremap_move_dontunmap_anyaddr(bool seal) |
| @@ -1463,7 +1463,7 @@ static void test_seal_mremap_move_dontunmap_anyaddr(bool seal) · 27 unmodified lines |
| 1463 | 1463 | |
| 1464 | 1464 | } |
| 1465 | 1465 | |
| 1466 | | − TEST_END_CHECK(); |
| 1466 | + REPORT_TEST_PASS(); |
| 1467 | 1467 | } |
| 1468 | 1468 | |
| 1469 | 1469 | |
| @@ -1556,7 +1556,7 @@ static void test_seal_merge_and_split(void) · 86 unmodified lines |
| 1556 | 1556 | FAIL_TEST_IF_FALSE(size == 22 * page_size); |
| 1557 | 1557 | FAIL_TEST_IF_FALSE(prot == 0x4); |
| 1558 | 1558 | |
| 1559 | | − TEST_END_CHECK(); |
| 1559 | + REPORT_TEST_PASS(); |
| 1560 | 1560 | } |
| 1561 | 1561 | |
| 1562 | 1562 | static void test_seal_discard_ro_anon_on_rw(bool seal) |
| @@ -1585,7 +1585,7 @@ static void test_seal_discard_ro_anon_on_rw(bool seal) · 22 unmodified lines |
| 1585 | 1585 | else |
| 1586 | 1586 | FAIL_TEST_IF_FALSE(!ret); |
| 1587 | 1587 | |
| 1588 | | − TEST_END_CHECK(); |
| 1588 | + REPORT_TEST_PASS(); |
| 1589 | 1589 | } |
| 1590 | 1590 | |
| 1591 | 1591 | static void test_seal_discard_ro_anon_on_pkey(bool seal) |
| @@ -1632,7 +1632,7 @@ static void test_seal_discard_ro_anon_on_pkey(bool seal) · 40 unmodified lines |
| 1632 | 1632 | else |
| 1633 | 1633 | FAIL_TEST_IF_FALSE(!ret); |
| 1634 | 1634 | |
| 1635 | | − TEST_END_CHECK(); |
| 1635 | + REPORT_TEST_PASS(); |
| 1636 | 1636 | } |
| 1637 | 1637 | |
| 1638 | 1638 | static void test_seal_discard_ro_anon_on_filebacked(bool seal) |
| @@ -1669,7 +1669,7 @@ static void test_seal_discard_ro_anon_on_filebacked(bool seal) · 30 unmodified lines |
| 1669 | 1669 | FAIL_TEST_IF_FALSE(!ret); |
| 1670 | 1670 | close(fd); |
| 1671 | 1671 | |
| 1672 | | − TEST_END_CHECK(); |
| 1672 | + REPORT_TEST_PASS(); |
| 1673 | 1673 | } |
| 1674 | 1674 | |
| 1675 | 1675 | static void test_seal_discard_ro_anon_on_shared(bool seal) |
| @@ -1698,7 +1698,7 @@ static void test_seal_discard_ro_anon_on_shared(bool seal) · 22 unmodified lines |
| 1698 | 1698 | else |
| 1699 | 1699 | FAIL_TEST_IF_FALSE(!ret); |
| 1700 | 1700 | |
| 1701 | | − TEST_END_CHECK(); |
| 1701 | + REPORT_TEST_PASS(); |
| 1702 | 1702 | } |
| 1703 | 1703 | |
| 1704 | 1704 | static void test_seal_discard_ro_anon(bool seal) |
| @@ -1728,7 +1728,7 @@ static void test_seal_discard_ro_anon(bool seal) · 23 unmodified lines |
| 1728 | 1728 | else |
| 1729 | 1729 | FAIL_TEST_IF_FALSE(!ret); |
| 1730 | 1730 | |
| 1731 | | − TEST_END_CHECK(); |
| 1731 | + REPORT_TEST_PASS(); |
| 1732 | 1732 | } |
| 1733 | 1733 | |
| 1734 | 1734 | int main(int argc, char **argv) |