Author: chromatic
Date: Sat Nov 8 01:15:34 2008
New Revision: 32445
Modified:
trunk/t/harness
Log:
[t] Made t/harness exit with a non-zero value if any tests in the run failed.
Now make will stop at a test failure for any rule which depends on a test run
(see RT #60116, reported by David Golden).
Modified: trunk/t/harness
==============================================================================
--- trunk/t/harness (original)
+++ trunk/t/harness Sat Nov 8 01:15:34 2008
@@ -113,7 +113,10 @@
directives => 1,
});
}
- $harness->runtests(@tests);
+ my $results = $harness->runtests(@tests);
+
+ # a non-zero code stops make after test failures (RT #60116)
+ exit ( $results->all_passed() ? 0 : 1 );
}
}