]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/testsuite: Use 'array unset' instead of just 'unset'
authorAndrew Burgess <andrew.burgess@embecosm.com>
Tue, 4 Aug 2020 11:13:37 +0000 (12:13 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Tue, 4 Aug 2020 14:56:08 +0000 (15:56 +0100)
commit10c381b53f8d0295287b8205f170dfedd953993b
tree54790a4df1f7fafe804cf116b53cc06071935cbf
parent789198ca955f924c7928c016d922c68e3e2e6dae
gdb/testsuite: Use 'array unset' instead of just 'unset'

In the check-test-names.exp library 'unset' was being used to unset an
array variable.  Though this seems to work fine on tcl 8.6, it was
discovered on a CentOS 7.8.2003 machine, running tcl 8.5, that this
doesn't work and 'array unset' should be used instead.

Using 'array unset' should work fine for newer and older versions of
tcl (since 8.3, releases ~2000).

gdb/testsuite/ChangeLog:

* lib/check-test-names.exp (do_reset_vars): Use 'array unset' to
unset the array variable.
gdb/testsuite/ChangeLog
gdb/testsuite/lib/check-test-names.exp