From fc5e78cf5edaf31794eba7195f89ef38bfd04578 Mon Sep 17 00:00:00 2001 From: Petr Rockai Date: Mon, 16 Feb 2009 16:49:21 +0000 Subject: [PATCH] Only fail when tests have failed, but not when they have been just skipped. --- test/harness.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/harness.c b/test/harness.c index 31b3922b4..0e5f44cfb 100644 --- a/test/harness.c +++ b/test/harness.c @@ -153,7 +153,7 @@ int main(int argc, char **argv) { npassed + nfailed + nskipped, npassed, nfailed, nskipped); /* print out a summary */ - if (nfailed || nskipped ) { + if (nfailed || nskipped) { for (i = 1; i < argc; ++ i) { switch (status[i]) { case FAILED: @@ -165,7 +165,7 @@ int main(int argc, char **argv) { } } printf("\n"); - return 1; + return nfailed > 0 || die; } return !die; }