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:
Andrew Burgess 2016-04-12 11:04:19 +01:00
parent 8c4c4aeba6
commit 758c54957d
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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) != "" \