aboutsummaryrefslogtreecommitdiff
path: root/atf-c/tc.c
diff options
context:
space:
mode:
Diffstat (limited to 'atf-c/tc.c')
-rw-r--r--atf-c/tc.c12
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.