Lines Matching refs:ExitedWithCode
210 // Tests the ExitedWithCode predicate.
211 TEST(ExitStatusPredicateTest, ExitedWithCode) {
214 EXPECT_TRUE(testing::ExitedWithCode(0)(0));
215 EXPECT_TRUE(testing::ExitedWithCode(1)(1));
216 EXPECT_TRUE(testing::ExitedWithCode(42)(42));
217 EXPECT_FALSE(testing::ExitedWithCode(0)(1));
218 EXPECT_FALSE(testing::ExitedWithCode(1)(0));
252 // Tests the ExitedWithCode predicate.
253 TEST(ExitStatusPredicateTest, ExitedWithCode) {
257 const testing::ExitedWithCode pred0(0);
258 const testing::ExitedWithCode pred1(1);
259 const testing::ExitedWithCode pred42(42);
369 EXPECT_EXIT(_exit(1), testing::ExitedWithCode(1), "");
392 EXPECT_EXIT(_exit(i), testing::ExitedWithCode(i), "") << ": i = " << i;
399 EXPECT_EXIT(_exit(1), testing::ExitedWithCode(1), "");
668 EXPECT_EXIT(_exit(1), testing::ExitedWithCode(1), "");
669 ASSERT_EXIT(_exit(42), testing::ExitedWithCode(42), "");
676 EXPECT_EXIT(raise(SIGABRT), testing::ExitedWithCode(3), "");
691 EXPECT_EXIT(raise(SIGSEGV), testing::ExitedWithCode(0), "")
738 testing::ExitedWithCode(3),