public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH committed] Swap "single-process" and "multi-process" in process-dies-while-detaching.exp
@ 2016-08-01  8:59 Yao Qi
  0 siblings, 0 replies; only message in thread
From: Yao Qi @ 2016-08-01  8:59 UTC (permalink / raw)
  To: gdb-patches

"single-process" and "multi-process" are used in the test message of
process-dies-while-detaching.exp, but they are misplaced due to

    set mode [expr {$multi_process ? "single-process" : "multi-process"}]

This patch is to swap them.

gdb/testsuite:

2016-08-01  Yao Qi  <yao.qi@linaro.org>

	* gdb.threads/process-dies-while-detaching.exp (do_test): Set
	variable mode to "multi-process" if $multi_process is 1, otherwise
	set it to "single-process".
---
 gdb/testsuite/ChangeLog                                    | 6 ++++++
 gdb/testsuite/gdb.threads/process-dies-while-detaching.exp | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index e9e8eff..51e8073 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,11 @@
 2016-08-01  Yao Qi  <yao.qi@linaro.org>
 
+	* gdb.threads/process-dies-while-detaching.exp (do_test): Set
+	variable mode to "multi-process" if $multi_process is 1, otherwise
+	set it to "single-process".
+
+2016-08-01  Yao Qi  <yao.qi@linaro.org>
+
 	* gdb.cp/anon-struct.exp: Check is_aarch32_target.
 	* gdb.cp/cpexprs.exp: Likewise.
 	* gdb.cp/m-static.exp: Likewise.
diff --git a/gdb/testsuite/gdb.threads/process-dies-while-detaching.exp b/gdb/testsuite/gdb.threads/process-dies-while-detaching.exp
index 8dc1aec..52dc8dd 100644
--- a/gdb/testsuite/gdb.threads/process-dies-while-detaching.exp
+++ b/gdb/testsuite/gdb.threads/process-dies-while-detaching.exp
@@ -318,7 +318,7 @@ proc do_test {multi_process cmd} {
 }
 
 foreach multi_process {0 1} {
-    set mode [expr {$multi_process ? "single-process" : "multi-process"}]
+    set mode [expr {$multi_process ? "multi-process" : "single-process"}]
     foreach cmd {"detach" "continue"} {
 	with_test_prefix "$mode: $cmd" {
 	    do_test $multi_process $cmd
-- 
1.9.1

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-08-01  8:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-01  8:59 [PATCH committed] Swap "single-process" and "multi-process" in process-dies-while-detaching.exp Yao Qi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).