summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/guality/guality.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/guality/guality.exp')
-rw-r--r--gcc/testsuite/gcc.dg/guality/guality.exp6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/guality/guality.exp b/gcc/testsuite/gcc.dg/guality/guality.exp
index 324f2990ec2..e21d5f5e1a4 100644
--- a/gcc/testsuite/gcc.dg/guality/guality.exp
+++ b/gcc/testsuite/gcc.dg/guality/guality.exp
@@ -14,6 +14,11 @@ if { [istarget "powerpc-ibm-aix*"] } {
}
proc check_guality {args} {
+ # Don't count check_guality as PASS, or FAIL etc., that would make
+ # the total PASS count dependent on how many parallel runtest invocations
+ # ran guality.exp. So save the counts first and restore them afterwards.
+ global test_counts
+ array set saved_test_counts [array get test_counts]
set result [eval check_compile guality_check executable $args "-g -O0"]
set lines [lindex $result 0]
set output [lindex $result 1]
@@ -23,6 +28,7 @@ proc check_guality {args} {
set ret [string match "*1 PASS, 0 FAIL, 0 UNRESOLVED*" $execout]
}
remote_file build delete $output
+ array set test_counts [array get saved_test_counts]
return $ret
}