Skip to content

Commit e12fbdf

Browse files
authored
[NFC] Remove unnececary check from test (#112438)
Important part of the test to have correct `ThreadDescriptorSize` after `InitTlsSize()`. It's not a problem if another test called `InitTlsSize()` before. Fixes #112399.
1 parent 9fb2db1 commit e12fbdf

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ TEST(SanitizerLinux, ThreadDescriptorSize) {
205205
void *result;
206206
ASSERT_EQ(0, pthread_create(&tid, 0, thread_descriptor_size_test_func, 0));
207207
ASSERT_EQ(0, pthread_join(tid, &result));
208-
EXPECT_EQ(0u, ThreadDescriptorSize());
209208
InitTlsSize();
210209
EXPECT_EQ((uptr)result, ThreadDescriptorSize());
211210
}

0 commit comments

Comments
 (0)