Skip to content

Commit 6830ebb

Browse files
Disable test for Android/Bionic.
Test depends on pthread_cancel which is not supported on Android.
1 parent 4e545bd commit 6830ebb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

libcxxabi/test/forced_unwind4.pass.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@
1313
// the child_thread. This test ensures sigretrun is handled correctly (see:
1414
// UnwindCursor<A, R>::setInfoForSigReturn).
1515

16+
// Android/Bionic does not support pthread_cancel.
17+
#ifdef __BIONIC__
18+
int main() {
19+
return 0;
20+
}
21+
#else
22+
1623
#include <chrono>
1724
#include <condition_variable>
1825
#include <pthread.h>
@@ -48,3 +55,4 @@ int main() {
4855
pthread_join(child_thread, NULL);
4956
return 0;
5057
}
58+
#endif

0 commit comments

Comments
 (0)