diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2017-09-04 10:31:08 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2017-09-16 10:40:26 +0200 |
| commit | 620eed0a3813c1263f39a2e166db1dc35a126e45 (patch) | |
| tree | 8c7a98f99c6767e9c640663437d1673d28d499c2 /validation | |
| parent | 0ab867b7423c311dbeb185dac5fd5f16956000bd (diff) | |
| download | sparse-dev-620eed0a3813c1263f39a2e166db1dc35a126e45.tar.gz | |
testsuite: better message for pattern nbr checking
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation')
| -rwxr-xr-x | validation/test-suite | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/validation/test-suite b/validation/test-suite index 5f63a23b..953b7637 100755 --- a/validation/test-suite +++ b/validation/test-suite @@ -142,6 +142,8 @@ nbr_patterns() while read nbr pat; do n=$(grep -s "$pat" "$ofile" | wc -l) if [ "$n" -ne "$nbr" ]; then + error "test '$ifile' failed" + error " Pattern '$pat' expected $nbr times but got $n times" return 1 fi done @@ -271,7 +273,6 @@ do_test() # verify the 'check-output-pattern-X-times' tags nbr_patterns "$file" 'check-output-pattern' $file.output.got if [ "$?" -ne "0" ]; then - error "Actual output doesn't contain the pattern the expected number." test_failed=1 fi fi |
