binutils-gdb/gdb/testsuite/gdb.testsuite
Tom de Vries 1e4be05b75 [gdb/testsuite] Add cond_wrap proc
Add a new proc cond_wrap, that can be used to replace the repetitive:
...
    if { $cond } {
	wrap {
	    <body>
	}
    } else {
	<body>
    }
...
with the shorter:
...
    cond_wrap $cond wrap {
	<body>
    }
...

Tested on x86_64-linux.
2022-10-14 13:09:50 +02:00
..
capture-command-output.exp
cond-wrap.exp
dump-system-info.exp
foreach_with_prefix.exp
gdb-test.exp
parse_options_args.exp
string_to_regexp.exp