I noticed that using foreach_with_prefix could make things a bit
less verbose. No changes in behavior expected.
gdb/testsuite/ChangeLog:
* gdb.threads/fork-plus-threads.exp: Use foreach_with_prefix.
Change-Id: I06aa6e3d10a9cfb6ada11547aefe8c70b636ac81
+2021-04-15 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * gdb.threads/fork-plus-threads.exp: Use foreach_with_prefix.
+
2021-04-15 Tom Tromey <tromey@adacore.com>
* gdb.dwarf2/arr-stride.exp: Add test.
standard_testfile
-proc do_test { detach_on_fork } {
+proc do_test { detach-on-fork } {
global GDBFLAGS
global srcfile testfile
global gdb_prompt
return 0
}
- gdb_test_no_output "set detach-on-fork $detach_on_fork"
+ gdb_test_no_output "set detach-on-fork ${detach-on-fork}"
set test "continue &"
gdb_test_multiple $test $test {
-re "$gdb_prompt " {
"only inferior 1 left"
}
-foreach detach_on_fork {"on" "off"} {
- with_test_prefix "detach-on-fork=$detach_on_fork" {
- do_test $detach_on_fork
- }
+foreach_with_prefix detach-on-fork {"on" "off"} {
+ do_test ${detach-on-fork}
}