From 6830ebb07eb9065dca0215e5ae6b22a24d35a745 Mon Sep 17 00:00:00 2001 From: Daniel Kiss Date: Fri, 29 Apr 2022 09:40:55 +0200 Subject: [PATCH] Disable test for Android/Bionic. Test depends on pthread_cancel which is not supported on Android. --- libcxxabi/test/forced_unwind4.pass.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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::setInfoForSigReturn). +// Android/Bionic does not support pthread_cancel. +#ifdef __BIONIC__ +int main() { + return 0; +} +#else + #include #include #include @@ -48,3 +55,4 @@ int main() { pthread_join(child_thread, NULL); return 0; } +#endif