mirror of
https://github.com/google/googletest.git
synced 2024-12-26 01:30:49 +08:00
Skip the predicate on SIGSEGV in death-test on Android builds with API level <= 21.
PiperOrigin-RevId: 643076477 Change-Id: Id9486b7d73c3b17851df1eaf8f5ab2085238bf75
This commit is contained in:
parent
a7f443b80b
commit
1d17ea141d
@ -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…
x
Reference in New Issue
Block a user