Home | History | Annotate | Download | only in test

Lines Matching refs:_exit

113   // We call _exit() instead of exit(), as the former is a direct
118 // Some compilers can recognize that _exit() never returns and issue the
122 _exit(1);
226 // Returns the exit status of a process that calls _exit(2) with a
232 _exit(exit_code);
248 _exit(1);
294 EXPECT_DEATH(_exit(1), "");
306 EXPECT_DEATH(_exit(1), "") << 1 << 2 << 3;
312 _exit(1);
338 ASSERT_DEATH(_exit(1), "") << "exit in default switch handler";
342 EXPECT_DEATH(_exit(1), "") << "exit in switch case";
372 EXPECT_EXIT(_exit(1), testing::ExitedWithCode(1), "");
375 ASSERT_DEATH(_exit(1), "");
414 EXPECT_DEATH(_exit(1), "");
423 EXPECT_DEATH(_exit(1), "");
447 EXPECT_EXIT(_exit(i), testing::ExitedWithCode(i), "") << ": i = " << i;
454 EXPECT_EXIT(_exit(1), testing::ExitedWithCode(1), "");
457 ASSERT_DEATH(_exit(1), "");
462 EXPECT_DEATH(_exit(1), "");
464 EXPECT_DEATH(_exit(1), "");
484 ASSERT_DEATH(_exit(1), "");
717 // Tests the *_EXIT family of macros, using a variety of predicates.
719 EXPECT_EXIT(_exit(1), testing::ExitedWithCode(1), "");
720 ASSERT_EXIT(_exit(42), testing::ExitedWithCode(42), "");
735 ASSERT_EXIT(_exit(0), testing::KilledBySignal(SIGSEGV), "")
759 EXPECT_DEATH(_exit(0), "") << "This failure is expected.";
1058 // _exit(2) is called in that case by ForkingDeathTest, but not by
1071 EXPECT_DEATH(_exit(1), "");
1076 EXPECT_DEATH(_exit(1), "") << "unexpected failure";
1077 ASSERT_DEATH(_exit(1), "") << "unexpected failure";
1079 EXPECT_DEATH(_exit(0), "") << "expected failure";
1082 ASSERT_DEATH(_exit(0), "") << "expected failure";
1297 _exit(1);
1307 _exit(1);
1324 EXPECT_DEATH_IF_SUPPORTED(_exit(1), "");
1336 EXPECT_DEATH_IF_SUPPORTED(_exit(1), "") << 1 << 2 << 3;
1351 ASSERT_DEATH_IF_SUPPORTED(_exit(1), "")
1356 EXPECT_DEATH_IF_SUPPORTED(_exit(1), "") << "exit in switch case";