Skip to content

Commit 4e659c6

Browse files
authored
[NFC][sanitizer] Use InitializePlatformEarly() in test (#109224)
Fix windows test after #108921.
1 parent 6dcde73 commit 4e659c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler-rt/lib/sanitizer_common/tests/sanitizer_common_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,12 +236,12 @@ static void *WorkerThread(void *arg) {
236236
}
237237

238238
TEST(SanitizerCommon, ThreadStackTlsMain) {
239-
InitTlsSize();
239+
InitializePlatformEarly();
240240
TestThreadInfo(true);
241241
}
242242

243243
TEST(SanitizerCommon, ThreadStackTlsWorker) {
244-
InitTlsSize();
244+
InitializePlatformEarly();
245245
pthread_t t;
246246
PTHREAD_CREATE(&t, 0, WorkerThread, 0);
247247
PTHREAD_JOIN(t, 0);

0 commit comments

Comments
 (0)