[gdb/testsuite] Fix gdb.gdb/unittest.exp for remote host
authorTom de Vries <tdevries@suse.de>
Mon, 27 Mar 2023 15:40:06 +0000 (17:40 +0200)
committerTom de Vries <tdevries@suse.de>
Mon, 27 Mar 2023 15:40:06 +0000 (17:40 +0200)
commit8ee5cc9fc03d4edbdc316c0a0e0bc46b99616c61
treef4018fe6db22b03ee549d95c8724b9c5a4f97ae2
parentb0af93ad2ba7db505e5967aeebe37f88b17e44cf
[gdb/testsuite] Fix gdb.gdb/unittest.exp for remote host

Fix test-case gdb.gdb/unittest.exp for remote host, by:
- disabling the completion tests if readline is not used, and
- not using with_gdb_cwd $dir for remote host (because it does
  not support changing to ".").

Tested on x86_64-linux.
gdb/testsuite/gdb.gdb/unittest.exp