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 [gdb/testsuite] Fix prompt parsing in capture_command_output 2022-10-11 10:14:38 +02:00
cond-wrap.exp [gdb/testsuite] Add cond_wrap proc 2022-10-14 13:09:50 +02:00
dump-system-info.exp Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
foreach_with_prefix.exp Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
gdb-test.exp [gdb/testsuite] Detect trailing ^C/^D in command 2022-10-10 16:24:38 +02:00
parse_options_args.exp Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
string_to_regexp.exp Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00