Home | History | Annotate | Download | only in test

Lines Matching full:_exit

110   // We call _exit() instead of exit(), as the former is a direct
115 // Some compilers can recognize that _exit() never returns and issue the
119 _exit(1);
223 // Returns the exit status of a process that calls _exit(2) with a
229 _exit(exit_code);
245 _exit(1);
291 EXPECT_DEATH(_exit(1), "");
303 EXPECT_DEATH(_exit(1), "") << 1 << 2 << 3;
309 _exit(1);
335 ASSERT_DEATH(_exit(1), "") << "exit in default switch handler";
339 EXPECT_DEATH(_exit(1), "") << "exit in switch case";
369 EXPECT_EXIT(_exit(1), testing::ExitedWithCode(1), "");
372 ASSERT_DEATH(_exit(1), "");
392 EXPECT_EXIT(_exit(i), testing::ExitedWithCode(i), "") << ": i = " << i;
399 EXPECT_EXIT(_exit(1), testing::ExitedWithCode(1), "");
402 ASSERT_DEATH(_exit(1), "");
407 EXPECT_DEATH(_exit(1), "");
409 EXPECT_DEATH(_exit(1), "");
429 ASSERT_DEATH(_exit(1), "");
666 // Tests the *_EXIT family of macros, using a variety of predicates.
668 EXPECT_EXIT(_exit(1), testing::ExitedWithCode(1), "");
669 ASSERT_EXIT(_exit(42), testing::ExitedWithCode(42), "");
684 ASSERT_EXIT(_exit(0), testing::KilledBySignal(SIGSEGV), "")
708 EXPECT_DEATH(_exit(0), "") << "This failure is expected.";
1006 // _exit(2) is called in that case by ForkingDeathTest, but not by
1019 EXPECT_DEATH(_exit(1), "");
1024 EXPECT_DEATH(_exit(1), "") << "unexpected failure";
1025 ASSERT_DEATH(_exit(1), "") << "unexpected failure";
1027 EXPECT_DEATH(_exit(0), "") << "expected failure";
1030 ASSERT_DEATH(_exit(0), "") << "expected failure";
1253 EXPECT_DEATH_IF_SUPPORTED(_exit(1), "");
1265 EXPECT_DEATH_IF_SUPPORTED(_exit(1), "") << 1 << 2 << 3;
1280 ASSERT_DEATH_IF_SUPPORTED(_exit(1), "")
1285 EXPECT_DEATH_IF_SUPPORTED(_exit(1), "") << "exit in switch case";