gdb/testsuite/

* lib/gdb.exp (gdb_test_multiple): Error on trailing newlines.
This commit is contained in:
Jan Kratochvil
2010-06-28 20:09:59 +00:00
parent 9279c692c1
commit 824cc8dd7c
2 changed files with 9 additions and 0 deletions

View File

@ -580,6 +580,10 @@ proc gdb_test_multiple { command message user_code } {
set message $command
}
if [string match "*\[\r\n\]" $command] {
error "Invalid trailing newline in \"$message\" test"
}
# TCL/EXPECT WART ALERT
# Expect does something very strange when it receives a single braced
# argument. It splits it along word separators and performs substitutions.