ld/testsuite: Initialise a variable to prevent tcl errors
In some cases a variable could be left uninitialised and then an attempt made to read this variable, resulting in a tcl error. This commit initialises the variable in all cases. ld/ChangeLog: * testsuite/lib/ld-lib.exp (run_dump_test): Initialise check_ld(terminal).
This commit is contained in:
parent
8c4c4aeba6
commit
758c54957d
|
@ -1,3 +1,8 @@
|
|||
2016-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
|
||||
|
||||
* testsuite/lib/ld-lib.exp (run_dump_test): Initialise
|
||||
check_ld(terminal).
|
||||
|
||||
2016-04-13 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
PR ld/19774
|
||||
|
|
|
@ -875,6 +875,7 @@ proc run_dump_test { name {extra_options {}} } {
|
|||
}
|
||||
|
||||
set check_ld(source) ""
|
||||
set check_ld(terminal) 0
|
||||
if { $opts(error) != "" \
|
||||
|| $opts(warning) != "" \
|
||||
|| $opts(error_output) != "" \
|
||||
|
|
Loading…
Reference in New Issue