Skip setjmp.bug_152210274 on HWASan.

Bug: 227390656
Change-Id: Ic6dc89d844bab4aba93132b3af7942961d3af644
This commit is contained in:
Florian Mayer 2022-04-15 22:53:51 +00:00
parent 750dcd326e
commit 4817ca64bb
1 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,7 @@
#include <unistd.h>
#include <android-base/silent_death_test.h>
#include <android-base/test_utils.h>
#include "SignalUtils.h"
@ -273,6 +274,7 @@ TEST(setjmp, setjmp_stack) {
}
TEST(setjmp, bug_152210274) {
SKIP_WITH_HWASAN; // b/227390656
// Ensure that we never have a mangled value in the stack pointer.
#if defined(__BIONIC__)
struct sigaction sa = {.sa_flags = SA_SIGINFO, .sa_sigaction = [](int, siginfo_t*, void*) {}};