[compiler-rt] e12fbdf - [NFC] Remove unnececary check from test (#112438)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 15 14:37:51 PDT 2024
Author: Vitaly Buka
Date: 2024-10-15T14:37:48-07:00
New Revision: e12fbdf8775f54580b6a9a77b53c31faddece841
URL: https://github.com/llvm/llvm-project/commit/e12fbdf8775f54580b6a9a77b53c31faddece841
DIFF: https://github.com/llvm/llvm-project/commit/e12fbdf8775f54580b6a9a77b53c31faddece841.diff
LOG: [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.
Added:
Modified:
compiler-rt/lib/sanitizer_common/tests/sanitizer_linux_test.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_linux_test.cpp b/compiler-rt/lib/sanitizer_common/tests/sanitizer_linux_test.cpp
index ce4a40444cd496..70669ab81691b8 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_linux_test.cpp
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_linux_test.cpp
@@ -205,7 +205,6 @@ TEST(SanitizerLinux, ThreadDescriptorSize) {
void *result;
ASSERT_EQ(0, pthread_create(&tid, 0, thread_descriptor_size_test_func, 0));
ASSERT_EQ(0, pthread_join(tid, &result));
- EXPECT_EQ(0u, ThreadDescriptorSize());
InitTlsSize();
EXPECT_EQ((uptr)result, ThreadDescriptorSize());
}
More information about the llvm-commits
mailing list