| 73 | thd_start((void *)(uintptr_t)0xa5f3e329); |
| 74 | } |
| 75 | TEST_END |
| 76 | |
| 77 | TEST_BEGIN(test_tsd_sub_thread) { |
| 78 | thd_t thd; |
| 79 | |
| 80 | data_cleanup_count = 0; |
| 81 | thd_create(&thd, thd_start, (void *)MALLOC_TSD_TEST_DATA_INIT); |
| 82 | thd_join(thd, NULL); |
| 83 | /* |
| 84 | * We reincarnate twice in the data cleanup, so it should execute at |
| 85 | * least 3 times. |
| 86 | */ |
| 87 | assert_x_ge(data_cleanup_count, 3, |
| 88 | "Cleanup function should have executed multiple times."); |
| 89 | } |
| 90 | TEST_END |
| 91 | |
| 92 | static void * |
nothing calls this directly
no test coverage detected