gcc-gdb-test.exp (gdb-test): Pass -- as first argument to send_log.
authorHans-Peter Nilsson <hp@bitrange.com>
Sat, 24 Nov 2012 09:39:38 +0000 (09:39 +0000)
committerHans-Peter Nilsson <hp@gcc.gnu.org>
Sat, 24 Nov 2012 09:39:38 +0000 (09:39 +0000)
* lib/gcc-gdb-test.exp (gdb-test): Pass -- as first argument
to send_log.

From-SVN: r193777

gcc/testsuite/ChangeLog
gcc/testsuite/lib/gcc-gdb-test.exp

index 6c5374a..8df8cab 100644 (file)
@@ -1,3 +1,8 @@
+2012-11-24  Hans-Peter Nilsson  <hp@bitrange.com>
+
+       * lib/gcc-gdb-test.exp (gdb-test): Pass -- as first argument
+       to send_log.
+
 2012-11-23  Jakub Jelinek  <jakub@redhat.com>
 
        * lib/asan-dg.exp (asan_symbolize): Remove all "BFD: " prefixed lines
index 2f593ab..6cd9206 100644 (file)
@@ -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