[libcxx-commits] [libcxxabi] 6830ebb - Disable test for Android/Bionic.
Daniel Kiss via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Apr 29 00:46:59 PDT 2022
Author: Daniel Kiss
Date: 2022-04-29T09:46:43+02:00
New Revision: 6830ebb07eb9065dca0215e5ae6b22a24d35a745
URL: https://github.com/llvm/llvm-project/commit/6830ebb07eb9065dca0215e5ae6b22a24d35a745
DIFF: https://github.com/llvm/llvm-project/commit/6830ebb07eb9065dca0215e5ae6b22a24d35a745.diff
LOG: Disable test for Android/Bionic.
Test depends on pthread_cancel which is not supported on Android.
Added:
Modified:
libcxxabi/test/forced_unwind4.pass.cpp
Removed:
################################################################################
diff --git a/libcxxabi/test/forced_unwind4.pass.cpp b/libcxxabi/test/forced_unwind4.pass.cpp
index 53a0121da92e..0d22657f6cf2 100644
--- a/libcxxabi/test/forced_unwind4.pass.cpp
+++ b/libcxxabi/test/forced_unwind4.pass.cpp
@@ -13,6 +13,13 @@
// the child_thread. This test ensures sigretrun is handled correctly (see:
// UnwindCursor<A, R>::setInfoForSigReturn).
+// Android/Bionic does not support pthread_cancel.
+#ifdef __BIONIC__
+int main() {
+ return 0;
+}
+#else
+
#include <chrono>
#include <condition_variable>
#include <pthread.h>
@@ -48,3 +55,4 @@ int main() {
pthread_join(child_thread, NULL);
return 0;
}
+#endif
More information about the libcxx-commits
mailing list