diff options
author | Abseil Team <absl-team@google.com> | 2024-06-13 18:59:10 (GMT) |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2024-06-13 19:00:01 (GMT) |
commit | 1d17ea141d2c11b8917d2c7d029f1c4e2b9769b2 (patch) | |
tree | eb91444bba1ac11c268f44a46ebda5c6c6b88bc1 | |
parent | a7f443b80b105f940225332ed3c31f2790092f47 (diff) | |
download | googletest-1d17ea141d2c11b8917d2c7d029f1c4e2b9769b2.zip googletest-1d17ea141d2c11b8917d2c7d029f1c4e2b9769b2.tar.gz googletest-1d17ea141d2c11b8917d2c7d029f1c4e2b9769b2.tar.bz2 |
Skip the predicate on SIGSEGV in death-test on Android builds with API level <= 21.
PiperOrigin-RevId: 643076477
Change-Id: Id9486b7d73c3b17851df1eaf8f5ab2085238bf75
-rw-r--r-- | googletest/test/googletest-death-test-test.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/googletest/test/googletest-death-test-test.cc b/googletest/test/googletest-death-test-test.cc index 75742c9..44b8046 100644 --- a/googletest/test/googletest-death-test-test.cc +++ b/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)); |