aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/lib
diff options
context:
space:
mode:
authorVineet Gupta <vineetg@rivosinc.com>2023-05-26 16:41:38 -0700
committerVineet Gupta <vineetg@rivosinc.com>2023-06-01 12:36:00 -0700
commit3bb8ebb6acfd4ce1ea9d924d73c252a8c4b31e1a (patch)
tree93571b1d70e98b69b2474fa209589896f301302d /gcc/testsuite/lib
parent8dde92fd8b3907f226ceba03f5bf559b1583aa32 (diff)
downloadgcc-3bb8ebb6acfd4ce1ea9d924d73c252a8c4b31e1a.zip
gcc-3bb8ebb6acfd4ce1ea9d924d73c252a8c4b31e1a.tar.gz
gcc-3bb8ebb6acfd4ce1ea9d924d73c252a8c4b31e1a.tar.bz2
testsuite: print any leaking torture options for debugging
This was helpful when debugging the recent multilib testsuite failure. gcc/testsuite: * lib/torture-options.exp: print the value of non-empty options: torture_without_loops, torture_with_loops, LTO_TORTURE_OPTIONS. Signed-off-by: Vineet Gupta <vineetg@rivosinc.com>
Diffstat (limited to 'gcc/testsuite/lib')
-rw-r--r--gcc/testsuite/lib/torture-options.exp6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/testsuite/lib/torture-options.exp b/gcc/testsuite/lib/torture-options.exp
index d00d07e..dfb536d 100644
--- a/gcc/testsuite/lib/torture-options.exp
+++ b/gcc/testsuite/lib/torture-options.exp
@@ -23,15 +23,15 @@ proc torture-init { args } {
global torture_without_loops global_with_loops
if [info exists torture_without_loops] {
- error "torture-init: torture_without_loops is not empty as expected"
+ error "torture-init: torture_without_loops is not empty as expected = \"${torture_without_loops}\""
}
if [info exists torture_with_loops] {
- error "torture-init: torture_with_loops is not empty as expected"
+ error "torture-init: torture_with_loops is not empty as expected = \"${torture_with_loops}\""
}
global LTO_TORTURE_OPTIONS
if [info exists LTO_TORTURE_OPTIONS] {
- error "torture-init: LTO_TORTURE_OPTIONS is not empty as expected"
+ error "torture-init: LTO_TORTURE_OPTIONS is not empty as expected = \"${LTO_TORTURE_OPTIONS}\""
}
set LTO_TORTURE_OPTIONS ""
if [check_effective_target_lto] {