Lines Matching defs:expect
69 enum expect_type expect;
120 ctx->expect = EXPECT_PASS;
284 ctx->expect = EXPECT_PASS; /* Ensure fail_requirement really fails. */
288 /** Ensures that the "expect" state is correct.
290 * Call this function before modifying the current value of expect.
295 if (ctx->expect == EXPECT_DEATH) {
298 } else if (ctx->expect == EXPECT_EXIT) {
301 } else if (ctx->expect == EXPECT_FAIL) {
307 } else if (ctx->expect == EXPECT_PASS) {
309 } else if (ctx->expect == EXPECT_SIGNAL) {
312 } else if (ctx->expect == EXPECT_TIMEOUT) {
332 if (ctx->expect == EXPECT_FAIL) {
334 } else if (ctx->expect == EXPECT_PASS) {
348 if (ctx->expect == EXPECT_FAIL) {
353 } else if (ctx->expect == EXPECT_PASS) {
367 if (ctx->expect == EXPECT_FAIL) {
370 } else if (ctx->expect == EXPECT_PASS) {
384 if (ctx->expect == EXPECT_PASS) {
390 "expect pass mode");
958 ctx->expect = EXPECT_PASS;
968 ctx->expect = EXPECT_FAIL;
985 ctx->expect = EXPECT_EXIT;
1002 ctx->expect = EXPECT_SIGNAL;
1018 ctx->expect = EXPECT_DEATH;
1034 ctx->expect = EXPECT_TIMEOUT;