diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2016-04-06 16:00:25 +0200 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2016-04-14 12:39:45 +0000 |
commit | 3d195c28473de2b4f33237926a89df9819c9bba4 (patch) | |
tree | a1e608f718b1fb74e28fa4d147e100131cd94578 | |
parent | 0ab7d3596d28142e9ce33ad3930fc1e66e0e0a29 (diff) |
compare_dg_tests.pl: Do not round pass ratio...
...when printing the diagnostic.
This is to avoid printing a rounded ratio equal
to the threshold and exiting with an error: this
is confusing for the user.
Change-Id: I4e60a00caa2d8a20c11a3bb6af91b7e03a8c039b
-rwxr-xr-x | compare_dg_tests.pl | 4 | ||||
-rw-r--r-- | testsuite/expected-1-2.txt | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/compare_dg_tests.pl b/compare_dg_tests.pl index 851c8d8..9522c7b 100755 --- a/compare_dg_tests.pl +++ b/compare_dg_tests.pl @@ -487,8 +487,8 @@ sub print_compare_results_summary($$) printf " +------------------------------------------+---------+---------+\n"; printf "\n"; - printf " REF PASS ratio: %.2f\n", $ref_ratio; - printf " RES PASS ratio: %.2f\n", $res_ratio; + printf " REF PASS ratio: %f\n", $ref_ratio; + printf " RES PASS ratio: %f\n", $res_ratio; if ($ref_ratio < $ratio_thresh) { printf " ***** ERROR: REF PASS ratio is abnormally low *****\n"; diff --git a/testsuite/expected-1-2.txt b/testsuite/expected-1-2.txt index 7b49705..719f72d 100644 --- a/testsuite/expected-1-2.txt +++ b/testsuite/expected-1-2.txt @@ -14,8 +14,8 @@ o RUN STATUS: | REF | RES | | Untested [UNTESTED] | 5 | 1 | +------------------------------------------+---------+---------+ - REF PASS ratio: 0.29 - RES PASS ratio: 0.48 + REF PASS ratio: 0.289474 + RES PASS ratio: 0.476190 ***** ERROR: REF PASS ratio is abnormally low ***** ***** ERROR: RES PASS ratio is abnormally low ***** ***** ERROR: No REF execution test PASSed. Check execution engine configuration. ***** |