Skip to content

Commit

Permalink
mor
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomShaper committed Oct 21, 2024
1 parent 3dd5da4 commit 4cdc38a
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions tests/core/templates/test_rid.h
Original file line number Diff line number Diff line change
Expand Up @@ -229,23 +229,33 @@ TEST_CASE("[RID_Owner] Thread safety") {
};

SUBCASE("All items in one chunk, pre-allocated") {
print_line("CASE A");
for (int i = 0; i < 1000; i++) {
RID_OwnerTester tester(true, true);
tester.test();
}
}
#if 0
SUBCASE("All items in one chunk, NOT pre-allocated") {
RID_OwnerTester tester(true, false);
tester.test();
print_line("CASE B");
for (int i = 0; i < 1000; i++) {
RID_OwnerTester tester(true, false);
tester.test();
}
}
SUBCASE("One item per chunk, pre-allocated") {
RID_OwnerTester tester(false, true);
tester.test();
print_line("CASE C");
for (int i = 0; i < 1000; i++) {
RID_OwnerTester tester(false, true);
tester.test();
}
}
SUBCASE("One item per chunk, NOT pre-allocated") {
RID_OwnerTester tester(false, false);
tester.test();
print_line("CASE D");
for (int i = 0; i < 1000; i++) {
RID_OwnerTester tester(false, false);
tester.test();
}
}
#endif
}
Expand Down

0 comments on commit 4cdc38a

Please sign in to comment.