Lines Matching defs:expect
71 enum expect_type expect;
119 ctx->expect = EXPECT_PASS;
251 ctx->expect = EXPECT_PASS; /* Ensure fail_requirement really fails. */
255 /** Ensures that the "expect" state is correct.
257 * Call this function before modifying the current value of expect.
262 if (ctx->expect == EXPECT_DEATH) {
265 } else if (ctx->expect == EXPECT_EXIT) {
268 } else if (ctx->expect == EXPECT_FAIL) {
274 } else if (ctx->expect == EXPECT_PASS) {
276 } else if (ctx->expect == EXPECT_SIGNAL) {
279 } else if (ctx->expect == EXPECT_TIMEOUT) {
298 if (ctx->expect == EXPECT_FAIL) {
300 } else if (ctx->expect == EXPECT_PASS) {
313 if (ctx->expect == EXPECT_FAIL) {
318 } else if (ctx->expect == EXPECT_PASS) {
332 if (ctx->expect == EXPECT_FAIL) {
335 } else if (ctx->expect == EXPECT_PASS) {
348 if (ctx->expect == EXPECT_PASS) {
353 "expect pass mode");
928 ctx->expect = EXPECT_PASS;
938 ctx->expect = EXPECT_FAIL;
955 ctx->expect = EXPECT_EXIT;
972 ctx->expect = EXPECT_SIGNAL;
988 ctx->expect = EXPECT_DEATH;
1005 ctx->expect = EXPECT_TIMEOUT;