summaryrefslogtreecommitdiff
path: root/gcc/testsuite/lib
diff options
context:
space:
mode:
authorhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>2012-11-24 09:39:38 +0000
committerhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>2012-11-24 09:39:38 +0000
commit3351ae277c3fa68683711bbc634cf3a652133021 (patch)
tree7dc5e2960a1c253929649e3cc9ef894341281ac0 /gcc/testsuite/lib
parenta2869930cbb867307ba245470e47a0615cc31341 (diff)
downloadgcc-3351ae277c3fa68683711bbc634cf3a652133021.tar.gz
* lib/gcc-gdb-test.exp (gdb-test): Pass -- as first argument
to send_log. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193777 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/lib')
-rw-r--r--gcc/testsuite/lib/gcc-gdb-test.exp4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/testsuite/lib/gcc-gdb-test.exp b/gcc/testsuite/lib/gcc-gdb-test.exp
index 2f593ab2edf..6cd92061558 100644
--- a/gcc/testsuite/lib/gcc-gdb-test.exp
+++ b/gcc/testsuite/lib/gcc-gdb-test.exp
@@ -74,7 +74,9 @@ proc gdb-test { args } {
if { $first == $second } {
pass "$testname"
} else {
- send_log "$first != $second\n"
+ # We need the -- to disambiguate $first from an option,
+ # as it may be negative.
+ send_log -- "$first != $second\n"
fail "$testname"
}
remote_close target