From 0cd530490f8751125412c6c061640752724537ed Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Tue, 23 Dec 2008 17:19:00 +0000 Subject: [PATCH] * gdb.cp/punctuator.exp: Backslash the '$' signs. --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.cp/punctuator.exp | 24 ++++++++++++------------ 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 68981fd500f..ce1de050734 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2008-12-23 Jan Kratochvil + + * gdb.cp/punctuator.exp: Backslash the '$' signs. + 2008-12-22 Tom Tromey * gdb.cp/punctuator.exp: New file. diff --git a/gdb/testsuite/gdb.cp/punctuator.exp b/gdb/testsuite/gdb.cp/punctuator.exp index 046f5682b13..c83cc161da9 100644 --- a/gdb/testsuite/gdb.cp/punctuator.exp +++ b/gdb/testsuite/gdb.cp/punctuator.exp @@ -35,18 +35,18 @@ gdb_test "print (0x5a5a or 0xaaaa) == (0x5a5a || 0xaaaa)" " = true" gdb_test "print (not not 0xaaaa) == (!!0xaaaa)" " = true" gdb_test "print (compl 0xaaaa) == (~0xaaaa)" " = true" -gdb_test "set $u = 0x5a5a" "" -gdb_test "set $v = 0x5a5a" "" -gdb_test "print ($u not_eq 0xaaaa) == ($v != 0xaaaa)" "= true" -gdb_test "print ($u and_eq 0xaaaa) == ($v &= 0xaaaa)" "= true" - -gdb_test "set $u = 0x5a5a" "" -gdb_test "set $v = 0x5a5a" "" -gdb_test "print ($u or_eq 0xaaaa) == ($v |= 0xaaaa)" "= true" - -gdb_test "set $u = 0x5a5a" "" -gdb_test "set $v = 0x5a5a" "" -gdb_test "print ($u xor_eq 0xaaaa) == ($v ^= 0xaaaa)" "= true" +gdb_test "set \$u = 0x5a5a" "" +gdb_test "set \$v = 0x5a5a" "" +gdb_test "print (\$u not_eq 0xaaaa) == (\$v != 0xaaaa)" "= true" +gdb_test "print (\$u and_eq 0xaaaa) == (\$v &= 0xaaaa)" "= true" + +gdb_test "set \$u = 0x5a5a" "" +gdb_test "set \$v = 0x5a5a" "" +gdb_test "print (\$u or_eq 0xaaaa) == (\$v |= 0xaaaa)" "= true" + +gdb_test "set \$u = 0x5a5a" "" +gdb_test "set \$v = 0x5a5a" "" +gdb_test "print (\$u xor_eq 0xaaaa) == (\$v ^= 0xaaaa)" "= true" gdb_exit return 0 -- 2.30.2