[testsuite] Don't use 'testfile' before 'standard_testfile'.
authorHafiz Abid Qadeer <abidh@codesourcery.com>
Tue, 9 Feb 2021 17:11:28 +0000 (17:11 +0000)
committerHafiz Abid Qadeer <abidh@codesourcery.com>
Tue, 9 Feb 2021 20:35:21 +0000 (20:35 +0000)
commitb61f78118a850a28a41a461fdaea4026ddc17658
tree152f72d521420c04b6a4d53db5872d2645ac8a17
parentf73e424f7bb51d4a5164320107f386b8fec34f4b
[testsuite] Don't use 'testfile' before 'standard_testfile'.

While running tests on arm-none-eabi, I noticed following errors in some
gdb.threads tests.

ERROR: can't read "testfile": no such variable

These were being caused by ${testfile} being used before 'standard_testfile'
which sets it. This patch just moves standard_testfile before the use.

2021-02-09  Abid Qadeer  <abidh@codesourcery.com>

gdb/testsuite/ChangeLog:

* gdb.threads/signal-command-handle-nopass.exp: Call
'standard_testfile' before using 'testfile'.
* gdb.threads/signal-command-multiple-signals-pending.exp: Likewise.
* gdb.threads/signal-delivered-right-thread.exp: Likewise
* gdb.threads/signal-sigtrap.exp: Likewise
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.threads/signal-command-handle-nopass.exp
gdb/testsuite/gdb.threads/signal-command-multiple-signals-pending.exp
gdb/testsuite/gdb.threads/signal-delivered-right-thread.exp
gdb/testsuite/gdb.threads/signal-sigtrap.exp