Lines Matching refs:expect
71 enum expect_type expect;
115 ctx->expect = EXPECT_PASS;
247 ctx->expect = EXPECT_PASS; /* Ensure fail_requirement really fails. */
251 /** Ensures that the "expect" state is correct.
253 * Call this function before modifying the current value of expect.
258 if (ctx->expect == EXPECT_DEATH) {
261 } else if (ctx->expect == EXPECT_EXIT) {
264 } else if (ctx->expect == EXPECT_FAIL) {
270 } else if (ctx->expect == EXPECT_PASS) {
272 } else if (ctx->expect == EXPECT_SIGNAL) {
275 } else if (ctx->expect == EXPECT_TIMEOUT) {
294 if (ctx->expect == EXPECT_FAIL) {
296 } else if (ctx->expect == EXPECT_PASS) {
309 if (ctx->expect == EXPECT_FAIL) {
314 } else if (ctx->expect == EXPECT_PASS) {
328 if (ctx->expect == EXPECT_FAIL) {
331 } else if (ctx->expect == EXPECT_PASS) {
344 if (ctx->expect == EXPECT_PASS) {
349 "expect pass mode");
917 ctx->expect = EXPECT_PASS;
927 ctx->expect = EXPECT_FAIL;
944 ctx->expect = EXPECT_EXIT;
961 ctx->expect = EXPECT_SIGNAL;
977 ctx->expect = EXPECT_DEATH;
993 ctx->expect = EXPECT_TIMEOUT;