From: Yao Qi Date: Thu, 28 Jul 2016 13:37:02 +0000 (+0100) Subject: Swap "single-process" and "multi-process" in process-dies-while-detaching.exp X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=41bfcd638a4e0e48b96ce4de2845372dea481322;p=binutils-gdb.git Swap "single-process" and "multi-process" in process-dies-while-detaching.exp "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 * 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". --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index e9e8eff3b36..51e8073eccd 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2016-08-01 Yao Qi + + * 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 * gdb.cp/anon-struct.exp: Check is_aarch32_target. diff --git a/gdb/testsuite/gdb.threads/process-dies-while-detaching.exp b/gdb/testsuite/gdb.threads/process-dies-while-detaching.exp index 8dc1aec3ac6..52dc8dd433a 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