aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/test-suite
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2017-02-13 00:29:02 +0100
committerChristopher Li <sparse@chrisli.org>2017-02-13 09:38:17 +0800
commit2ecb7f894226daabd534daee940db38ea8032e26 (patch)
treec4c48922155f99fd57e6b3389ae91ae9b478e62f /validation/test-suite
parentd9ddbba2bfeb54354edf96e0eb4921ea6838ab34 (diff)
downloadsparse-dev-2ecb7f894226daabd534daee940db38ea8032e26.tar.gz
testsuite: get 'check-known-to-fail' earlier
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> Signed-off-by: Christopher Li <sparse@chrisli.org>
Diffstat (limited to 'validation/test-suite')
-rwxr-xr-xvalidation/test-suite8
1 files changed, 4 insertions, 4 deletions
diff --git a/validation/test-suite b/validation/test-suite
index 852904a4..fdb7cbc2 100755
--- a/validation/test-suite
+++ b/validation/test-suite
@@ -212,6 +212,10 @@ do_test()
$cmd 1> $file.output.got 2> $file.error.got
actual_exit_value=$?
+ get_tag "check-known-to-fail" $file
+ must_fail=`expr "$?" = 0`
+ known_ko_tests=`expr $known_ko_tests + $must_fail`
+
for stream in output error; do
grep -s -q "check-$stream-ignore" $file && continue
@@ -249,10 +253,6 @@ do_test()
test_failed=1
fi
- get_tag "check-known-to-fail" $file
- must_fail=`expr "$?" = 0`
- known_ko_tests=`expr $known_ko_tests + $must_fail`
-
[ "$test_failed" -eq "$must_fail" ] || failed=1
if [ "$must_fail" -eq "1" ]; then