Update years in copyright notice for the GDB files.
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.cp / punctuator.exp
index 7c32a1f531d8154377cb4138fe61d33e109e845e..d0cd8be96eeca25687f645419173d396bba83a11 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 2008, 2009, 2010 Free Software Foundation, Inc.
+# Copyright 2008-2013 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 
 # This file is part of the gdb testsuite
 
-if $tracelevel then {
-        strace $tracelevel
-        }
-
 if { [skip_cplus_tests] } { continue }
 
 gdb_exit
 gdb_start
 
-gdb_test "set lang c++" ""
+gdb_test_no_output "set lang c++"
 gdb_test "print (0x5a5a bitand 0xaaaa) == (0x5a5a & 0xaaaa)" " = true"
 gdb_test "print (0x5a5a bitor 0xaaaa) == (0x5a5a | 0xaaaa)" " = true"
 gdb_test "print (0x5a5a xor 0xaaaa) == (0x5a5a ^ 0xaaaa)" " = true"
@@ -35,17 +31,17 @@ 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_no_output "set \$u = 0x5a5a" "set \$u 1"
+gdb_test_no_output "set \$v = 0x5a5a" "set \$v 1"
 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_no_output "set \$u = 0x5a5a" "set \$u 2"
+gdb_test_no_output "set \$v = 0x5a5a" "set \$v 2"
 gdb_test "print (\$u or_eq 0xaaaa) == (\$v |= 0xaaaa)" "= true"
 
-gdb_test "set \$u = 0x5a5a" ""
-gdb_test "set \$v = 0x5a5a" ""
+gdb_test_no_output "set \$u = 0x5a5a" "set \$u 3"
+gdb_test_no_output "set \$v = 0x5a5a" "set \$v 3"
 gdb_test "print (\$u xor_eq 0xaaaa) == (\$v ^= 0xaaaa)" "= true"
 
 gdb_exit
This page took 0.026189 seconds and 4 git commands to generate.