btrace, testsuite: fix extended-remote non-stop test
authorMarkus Metzger <markus.t.metzger@intel.com>
Thu, 26 Jan 2017 08:27:45 +0000 (09:27 +0100)
committerMarkus Metzger <markus.t.metzger@intel.com>
Wed, 1 Feb 2017 13:40:10 +0000 (14:40 +0100)
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.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.btrace/non-stop.exp

index d22b16ee362b8104879942c4d9310e6fe227d39d..3e0a5da2885d380857ee9f8c2e206ccd3cac219b 100644 (file)
@@ -1,3 +1,8 @@
+2017-02-01  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * gdb.btrace/non-stop.exp: Add '-ex "set non-stop on"' to
+       GDBFLAGS.
+
 2017-02-01  Markus Metzger  <markus.t.metzger@intel.com>
 
        * gdb.btrace/buffer-size.exp: Add unsupported/untested message if
index cda15e2f8c472a771c2ebe2245a54e727568da79..a671b9c8c9fc469a1d6c422e550b06ffd94066ec 100644 (file)
@@ -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"
This page took 0.034056 seconds and 4 git commands to generate.