Skip the predicate on SIGSEGV in death-test on Android builds with API level <= 21.

PiperOrigin-RevId: 643076477
Change-Id: Id9486b7d73c3b17851df1eaf8f5ab2085238bf75
pull/4561/head
Abseil Team 5 months ago committed by Copybara-Service
parent a7f443b80b
commit 1d17ea141d
  1. 2
      googletest/test/googletest-death-test-test.cc

@ -291,7 +291,9 @@ TEST(ExitStatusPredicateTest, KilledBySignal) {
const int status_kill = KilledExitStatus(SIGKILL);
const testing::KilledBySignal pred_segv(SIGSEGV);
const testing::KilledBySignal pred_kill(SIGKILL);
#if !(defined(GTEST_OS_LINUX_ANDROID) && __ANDROID_API__ <= 21)
EXPECT_PRED1(pred_segv, status_segv);
#endif
EXPECT_PRED1(pred_kill, status_kill);
EXPECT_FALSE(pred_segv(status_kill));
EXPECT_FALSE(pred_kill(status_segv));

Loading…
Cancel
Save