Disable test for Android/Bionic.

Test depends on pthread_cancel which is not supported on Android.
This commit is contained in:
Daniel Kiss 2022-04-29 09:40:55 +02:00
parent 4e545bdb35
commit 6830ebb07e
1 changed files with 8 additions and 0 deletions

View File

@ -13,6 +13,13 @@
// the child_thread. This test ensures sigretrun is handled correctly (see: // the child_thread. This test ensures sigretrun is handled correctly (see:
// UnwindCursor<A, R>::setInfoForSigReturn). // UnwindCursor<A, R>::setInfoForSigReturn).
// Android/Bionic does not support pthread_cancel.
#ifdef __BIONIC__
int main() {
return 0;
}
#else
#include <chrono> #include <chrono>
#include <condition_variable> #include <condition_variable>
#include <pthread.h> #include <pthread.h>
@ -48,3 +55,4 @@ int main() {
pthread_join(child_thread, NULL); pthread_join(child_thread, NULL);
return 0; return 0;
} }
#endif