Skip android_unsafe_frame_pointer_chase.pthread with native bridge

Bug: 167968941
Bug: 161082441
Test: bionic-unit-tests --gtest_filter=android_unsafe_frame_pointer_chase.pthread
Change-Id: I42a8121003be2fbcd1486b0d5281bc60ac67eb22
This commit is contained in:
Evgeny Eltsin 2020-06-09 15:49:20 +02:00 committed by Lev Rumyantsev
parent 55c315335d
commit 1d1c4f9e25
2 changed files with 9 additions and 0 deletions

View file

@ -308,6 +308,9 @@ cc_test_library {
cflags: [
"-fno-omit-frame-pointer",
],
static_libs: [
"libbase",
],
}
// -----------------------------------------------------------------------------

View file

@ -22,6 +22,8 @@
#include "platform/bionic/android_unsafe_frame_pointer_chase.h"
#include "utils.h"
// Prevent tail calls inside recurse.
__attribute__((weak, noinline)) size_t nop(size_t val) {
return val;
@ -94,6 +96,10 @@ static void* BacktraceThread(void*) {
}
TEST(android_unsafe_frame_pointer_chase, pthread) {
// Android11 missed the fix (r.android.com/1382566) so disabling the test.
// It will be re-enabled in the next releases.
SKIP_WITH_NATIVE_BRIDGE;
pthread_t t;
ASSERT_EQ(0, pthread_create(&t, nullptr, BacktraceThread, nullptr));
void* retval;