This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] btrace, testsuite: fix extended-remote non-stop test
- From: Markus Metzger <mmetzger at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 1 Feb 2017 13:41:26 -0000
- Subject: [binutils-gdb] btrace, testsuite: fix extended-remote non-stop test
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0a1c7e2881226bb9734d7c31c9415c636f35921d
commit 0a1c7e2881226bb9734d7c31c9415c636f35921d
Author: Markus Metzger <markus.t.metzger@intel.com>
Date: Thu Jan 26 09:27:45 2017 +0100
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.
Diff:
---
gdb/testsuite/ChangeLog | 5 +++++
gdb/testsuite/gdb.btrace/non-stop.exp | 6 ++++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index d22b16e..3e0a5da 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,10 @@
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.
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"