MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / TEST_BEGIN

Function TEST_BEGIN

deps/jemalloc/test/unit/tsd.c:75–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73 thd_start((void *)(uintptr_t)0xa5f3e329);
74}
75TEST_END
76
77TEST_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}
90TEST_END
91
92static void *

Callers

nothing calls this directly

Calls 2

thd_createFunction · 0.50
thd_joinFunction · 0.50

Tested by

no test coverage detected