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.
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
the test is skipped.
* gdb.btrace/data.exp: Likewise.
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"