[gdb/testsuite] Set remotedir in local-remote-host-native.exp
authorTom de Vries <tdevries@suse.de>
Tue, 21 Mar 2023 10:07:19 +0000 (11:07 +0100)
committerTom de Vries <tdevries@suse.de>
Tue, 21 Mar 2023 10:07:19 +0000 (11:07 +0100)
commit7c872c903c772ca6b269e5dbe2880dd084240ae6
tree71bf2d81d37fbfc3c9b69edc52cc0a4f0984c5d6
parente43d8768d909139bf5ec4a97c79a096ed28a4b08
[gdb/testsuite] Set remotedir in local-remote-host-native.exp

In commit ff581559f9d ("[gdb/testsuite] Add gdb.testsuite/board-sanity.exp") I
removed handling of HOST_DIR in local-remote-host-native.exp to fix FAILs
in test-case gdb.testsuite/board-sanity.exp.

Reintroduce handling of HOST_DIR using remotedir, now that using remotedir for
a host board no longer make compilation fail due to commit 80d6c79866f
("[gdb/testsuite] Handle remotedir in remote_upload").

This fixes an XFAIL in gdb.testsuite/board-sanity.exp, introduced in commit
3741934fdb0 ("[gdb/testsuite] Set remotedir by default in some boards").

Tested on x86_64-linux.
gdb/testsuite/boards/local-remote-host-native.exp
gdb/testsuite/gdb.testsuite/board-sanity.exp