Lines Matching refs:expect
67 enum expect_type expect;
111 ctx->expect = EXPECT_PASS;
243 ctx->expect = EXPECT_PASS; /* Ensure fail_requirement really fails. */
247 /** Ensures that the "expect" state is correct.
249 * Call this function before modifying the current value of expect.
254 if (ctx->expect == EXPECT_DEATH) {
257 } else if (ctx->expect == EXPECT_EXIT) {
260 } else if (ctx->expect == EXPECT_FAIL) {
266 } else if (ctx->expect == EXPECT_PASS) {
268 } else if (ctx->expect == EXPECT_SIGNAL) {
271 } else if (ctx->expect == EXPECT_TIMEOUT) {
290 if (ctx->expect == EXPECT_FAIL) {
292 } else if (ctx->expect == EXPECT_PASS) {
305 if (ctx->expect == EXPECT_FAIL) {
310 } else if (ctx->expect == EXPECT_PASS) {
324 if (ctx->expect == EXPECT_FAIL) {
327 } else if (ctx->expect == EXPECT_PASS) {
340 if (ctx->expect == EXPECT_PASS) {
345 "expect pass mode");
915 ctx->expect = EXPECT_PASS;
925 ctx->expect = EXPECT_FAIL;
942 ctx->expect = EXPECT_EXIT;
959 ctx->expect = EXPECT_SIGNAL;
975 ctx->expect = EXPECT_DEATH;
991 ctx->expect = EXPECT_TIMEOUT;