ld: Update the pass and fail strings of PR ld/28138 test
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 11 Aug 2021 12:53:56 +0000 (05:53 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 11 Aug 2021 13:04:29 +0000 (06:04 -0700)
PR ld/28138
* testsuite/ld-plugin/lto.exp: Update the pass and fail strings
of PR ld/28138 test to indicate which part of the test passed
and failed.

ld/testsuite/ld-plugin/lto.exp

index 999d911ce6a75bc38f4cfcf28c07364cfebbd278..68d2db1caeb738888c1cba1f5c8164e6f8a3afb0 100644 (file)
@@ -710,15 +710,15 @@ if [string match "" $exec_output] then {
     if { [isnative] } {
        set exec_output [run_host_cmd "tmpdir/pr28138" ""]
        if [string match "PASS" $exec_output] then {
-           pass "PR ld/28138"
+           pass "PR ld/28138 (build & run)"
        } else {
-           fail "PR ld/28138"
+           fail "PR ld/28138 (built ok, run failed)"
        }
     } else {
-       pass "PR ld/28138"
+       pass "PR ld/28138 (build only)"
     }
 } else {
-    fail "PR ld/28138"
+    fail "PR ld/28138 (build only)"
 }
 
 set testname "Build liblto-11.a"