Home | History | Annotate | Download | only in test

Lines Matching full:_exit

115   // We call _exit() instead of exit(), as the former is a direct
120 // Some compilers can recognize that _exit() never returns and issue the
124 _exit(1);
228 // Returns the exit status of a process that calls _exit(2) with a
234 _exit(exit_code);
250 _exit(1);
296 EXPECT_DEATH(_exit(1), "");
308 EXPECT_DEATH(_exit(1), "") << 1 << 2 << 3;
314 _exit(1);
340 ASSERT_DEATH(_exit(1), "") << "exit in default switch handler";
344 EXPECT_DEATH(_exit(1), "") << "exit in switch case";
374 EXPECT_EXIT(_exit(1), testing::ExitedWithCode(1), "");
377 ASSERT_DEATH(_exit(1), "");
416 EXPECT_DEATH(_exit(1), "");
425 EXPECT_DEATH(_exit(1), "");
449 EXPECT_EXIT(_exit(i), testing::ExitedWithCode(i), "") << ": i = " << i;
456 EXPECT_EXIT(_exit(1), testing::ExitedWithCode(1), "");
459 ASSERT_DEATH(_exit(1), "");
464 EXPECT_DEATH(_exit(1), "");
466 EXPECT_DEATH(_exit(1), "");
486 ASSERT_DEATH(_exit(1), "");
719 // Tests the *_EXIT family of macros, using a variety of predicates.
721 EXPECT_EXIT(_exit(1), testing::ExitedWithCode(1), "");
722 ASSERT_EXIT(_exit(42), testing::ExitedWithCode(42), "");
737 ASSERT_EXIT(_exit(0), testing::KilledBySignal(SIGSEGV), "")
761 EXPECT_DEATH(_exit(0), "") << "This failure is expected.";
1060 // _exit(2) is called in that case by ForkingDeathTest, but not by
1073 EXPECT_DEATH(_exit(1), "");
1078 EXPECT_DEATH(_exit(1), "") << "unexpected failure";
1079 ASSERT_DEATH(_exit(1), "") << "unexpected failure";
1081 EXPECT_DEATH(_exit(0), "") << "expected failure";
1084 ASSERT_DEATH(_exit(0), "") << "expected failure";
1307 EXPECT_DEATH_IF_SUPPORTED(_exit(1), "");
1319 EXPECT_DEATH_IF_SUPPORTED(_exit(1), "") << 1 << 2 << 3;
1334 ASSERT_DEATH_IF_SUPPORTED(_exit(1), "")
1339 EXPECT_DEATH_IF_SUPPORTED(_exit(1), "") << "exit in switch case";
1352 _exit(1);
1362 _exit(1);