[PATCH] D65055: [sanitizer_common][tests] Fix SanitizerCommon-Unit :: ./Sanitizer-*-Test/SanitizerCommon.PthreadDestructorIterations on Solaris
Rainer Orth via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 2 02:05:12 PDT 2019
ro updated this revision to Diff 212994.
ro added a comment.
Rebased after .cc -> .cpp mass renamings.
Repository:
rCRT Compiler Runtime
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D65055/new/
https://reviews.llvm.org/D65055
Files:
lib/sanitizer_common/tests/sanitizer_posix_test.cpp
Index: lib/sanitizer_common/tests/sanitizer_posix_test.cpp
===================================================================
--- lib/sanitizer_common/tests/sanitizer_posix_test.cpp
+++ lib/sanitizer_common/tests/sanitizer_posix_test.cpp
@@ -54,7 +54,12 @@
SpawnThread(GetPthreadDestructorIterations());
EXPECT_TRUE(destructor_executed);
SpawnThread(GetPthreadDestructorIterations() + 1);
+#if SANITIZER_SOLARIS
+ // Solaris continues calling destructors beyond PTHREAD_DESTRUCTOR_ITERATIONS.
+ EXPECT_TRUE(destructor_executed);
+#else
EXPECT_FALSE(destructor_executed);
+#endif
ASSERT_EQ(0, pthread_key_delete(key));
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65055.212994.patch
Type: text/x-patch
Size: 641 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190802/3379ea32/attachment.bin>
More information about the llvm-commits
mailing list