Swap "single-process" and "multi-process" in process-dies-while-detaching.exp
authorYao Qi <yao.qi@linaro.org>
Thu, 28 Jul 2016 13:37:02 +0000 (14:37 +0100)
committerYao Qi <yao.qi@linaro.org>
Mon, 1 Aug 2016 09:00:31 +0000 (10:00 +0100)
"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
gdb/testsuite/gdb.threads/process-dies-while-detaching.exp

index e9e8eff3b3657c5cf86df3cf2517ff475d56dbad..51e8073eccd3e4707c1b35d55ebb82a9a05e43fc 100644 (file)
@@ -1,3 +1,9 @@
+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.
index 8dc1aec3ac63f04f4f81ade46a57bf6fdadeca55..52dc8dd433a22d590f9683ab5951d3536a66d5e2 100644 (file)
@@ -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