aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.btrace
diff options
context:
space:
mode:
authorMarkus Metzger <markus.t.metzger@intel.com>2017-01-26 09:27:45 +0100
committerMarkus Metzger <markus.t.metzger@intel.com>2017-02-01 14:40:10 +0100
commit0a1c7e2881226bb9734d7c31c9415c636f35921d (patch)
tree34ac1e67e2ffaf94c639f2cd5f0f72c9ce6bd2cd /gdb/testsuite/gdb.btrace
parentb5ac99b0828d4e1dfa33540b428c0fc6c32eda67 (diff)
downloadgdb-0a1c7e2881226bb9734d7c31c9415c636f35921d.zip
gdb-0a1c7e2881226bb9734d7c31c9415c636f35921d.tar.gz
gdb-0a1c7e2881226bb9734d7c31c9415c636f35921d.tar.bz2
btrace, testsuite: fix extended-remote non-stop test
With --target_board=native-extended-gdbserver non-stop tests are failing with UNTESTED: gdb.btrace/non-stop.exp: failed to run to main Fix that by adding '-ex "set non-stop on"' to GDBFLAGS before restarting. testsuite/ * gdb.btrace/non-stop.exp: Add '-ex "set non-stop on"' to GDBFLAGS.
Diffstat (limited to 'gdb/testsuite/gdb.btrace')
-rw-r--r--gdb/testsuite/gdb.btrace/non-stop.exp6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.btrace/non-stop.exp b/gdb/testsuite/gdb.btrace/non-stop.exp
index cda15e2..a671b9c 100644
--- a/gdb/testsuite/gdb.btrace/non-stop.exp
+++ b/gdb/testsuite/gdb.btrace/non-stop.exp
@@ -25,9 +25,11 @@ if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" "$binfile" executable {debu
untested "failed to prepare"
return -1
}
-clean_restart $testfile
-gdb_test_no_output "set non-stop on"
+save_vars { GDBFLAGS } {
+ append GDBFLAGS " -ex \"set non-stop on\""
+ clean_restart $testfile
+}
if ![runto_main] {
untested "failed to run to main"