aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test-runner.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-runner.c')
-rw-r--r--tests/test-runner.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test-runner.c b/tests/test-runner.c
index bb07013..24ae317 100644
--- a/tests/test-runner.c
+++ b/tests/test-runner.c
@@ -124,6 +124,9 @@ int main(int argc, char *argv[])
break;
}
+ if (t->must_fail)
+ success = !success;
+
if (success) {
pass++;
fprintf(stderr, ", pass.\n");