diff options
author | Alan Somers <asomers@FreeBSD.org> | 2021-09-10 22:50:50 +0000 |
---|---|---|
committer | Alan Somers <asomers@FreeBSD.org> | 2021-09-10 22:50:50 +0000 |
commit | cd355e3667c67b15d9850bacb416b13486e22c24 (patch) | |
tree | 9c47797123524e0a94d800711aed08cb35a83302 /atf-c/tc.c | |
parent | a3330ae736606c1812b9e9c4b9dcfdfb1a150dde (diff) |
Diffstat (limited to 'atf-c/tc.c')
-rw-r--r-- | atf-c/tc.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/atf-c/tc.c b/atf-c/tc.c index 69b31123f3a3..84a8beb4fa13 100644 --- a/atf-c/tc.c +++ b/atf-c/tc.c @@ -381,15 +381,9 @@ pass(struct context *ctx) static void skip(struct context *ctx, atf_dynstr_t *reason) { - if (ctx->expect == EXPECT_PASS) { - create_resfile(ctx, "skipped", -1, reason); - context_close_resfile(ctx); - exit(EXIT_SUCCESS); - } else { - error_in_expect(ctx, "Can only skip a test case when running in " - "expect pass mode"); - } - UNREACHABLE; + create_resfile(ctx, "skipped", -1, reason); + context_close_resfile(ctx); + exit(EXIT_SUCCESS); } /** Formats a failure/skip reason message. |