aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2016-03-03 09:46:03 +0000
committerRainer Orth <ro@gcc.gnu.org>2016-03-03 09:46:03 +0000
commitcb83ba54b516b1475119d669fd40ad2fda64f6df (patch)
tree07943c9e53b61082a7f723e0e26fd6f15cf890fe /gcc/testsuite
parentedcbda7e2ce5fd3411402fbd117d3900443f8451 (diff)
downloadgcc-cb83ba54b516b1475119d669fd40ad2fda64f6df.zip
gcc-cb83ba54b516b1475119d669fd40ad2fda64f6df.tar.gz
gcc-cb83ba54b516b1475119d669fd40ad2fda64f6df.tar.bz2
Invoke gdb with -batch to avoid prompts
* lib/gcc-gdb-test.exp (gdb-test): Make log message match command. Invoke gdb with -batch. * lib/gcc-simulate-thread.exp (simulate-thread): Likewise. From-SVN: r233930
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/lib/gcc-gdb-test.exp4
-rw-r--r--gcc/testsuite/lib/gcc-simulate-thread.exp4
3 files changed, 10 insertions, 4 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 1c6e170..1594911 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2016-03-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ * lib/gcc-gdb-test.exp (gdb-test): Make log message match command.
+ Invoke gdb with -batch.
+ * lib/gcc-simulate-thread.exp (simulate-thread): Likewise.
+
2016-03-03 Richard Biener <rguenther@suse.de>
PR tree-optimization/55936
diff --git a/gcc/testsuite/lib/gcc-gdb-test.exp b/gcc/testsuite/lib/gcc-gdb-test.exp
index c4a636c..9fd6d9f 100644
--- a/gcc/testsuite/lib/gcc-gdb-test.exp
+++ b/gcc/testsuite/lib/gcc-gdb-test.exp
@@ -73,8 +73,8 @@ proc gdb-test { args } {
puts $fd "quit"
close $fd
- send_log "Spawning: $gdb_name -nx -nw -quiet -x $cmd_file ./$output_file\n"
- set res [remote_spawn target "$gdb_name -nx -nw -quiet -x $cmd_file ./$output_file"]
+ send_log "Spawning: $gdb_name -nx -nw -quiet -batch -x $cmd_file ./$output_file\n"
+ set res [remote_spawn target "$gdb_name -nx -nw -quiet -batch -x $cmd_file ./$output_file"]
if { $res < 0 || $res == "" } {
unsupported "$testname"
file delete $cmd_file
diff --git a/gcc/testsuite/lib/gcc-simulate-thread.exp b/gcc/testsuite/lib/gcc-simulate-thread.exp
index b2b0e98..b33678f 100644
--- a/gcc/testsuite/lib/gcc-simulate-thread.exp
+++ b/gcc/testsuite/lib/gcc-simulate-thread.exp
@@ -49,8 +49,8 @@ proc simulate-thread { args } {
set message "thread simulation test"
- send_log "Spawning: $gdb_name -nx -nw -quiet -x $cmd_file ./$exec_file\n"
- set res [remote_spawn target "$gdb_name -nx -nw -x $cmd_file ./$exec_file"]
+ send_log "Spawning: $gdb_name -nx -nw -batch -x $cmd_file ./$exec_file\n"
+ set res [remote_spawn target "$gdb_name -nx -nw -batch -x $cmd_file ./$exec_file"]
if { $res < 0 || $res == "" } {
unsupported "$testcase $message"
return