Skip to content
Snippets Groups Projects
Commit 3bb8ebb6 authored by Vineet Gupta's avatar Vineet Gupta
Browse files

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: default avatarVineet Gupta <vineetg@rivosinc.com>
parent 8dde92fd
No related branches found
No related tags found
No related merge requests found
......@@ -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] {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment