summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/arithmet.exp
diff options
context:
space:
mode:
authorMichael Chastain <mec@google.com>2001-07-09 21:42:52 +0000
committerMichael Chastain <mec@google.com>2001-07-09 21:42:52 +0000
commit112f9ab535bba939b9853485263bbb0cb5b74dcc (patch)
treef244e7d9f59d010fa3efb4be565ea396e5888549 /gdb/testsuite/gdb.base/arithmet.exp
parentd8bf3afa188f522f9251cb372627881729c2d382 (diff)
downloadbinutils-gdb-112f9ab535bba939b9853485263bbb0cb5b74dcc.tar.gz
2001-06-24 Michael Chastain <chastain@redhat.com>
* gdb.base/arithmet.exp: Remove some tests to make all test names unique.
Diffstat (limited to 'gdb/testsuite/gdb.base/arithmet.exp')
-rw-r--r--gdb/testsuite/gdb.base/arithmet.exp32
1 files changed, 8 insertions, 24 deletions
diff --git a/gdb/testsuite/gdb.base/arithmet.exp b/gdb/testsuite/gdb.base/arithmet.exp
index 57afc8d7cf2..6e7e6852530 100644
--- a/gdb/testsuite/gdb.base/arithmet.exp
+++ b/gdb/testsuite/gdb.base/arithmet.exp
@@ -94,40 +94,24 @@ gdb_test "print x%y%z" "0"
gdb_test "set variable x=10" ""
gdb_test "set variable y=4" ""
-gdb_test "set variable z=2" ""
# x y z w
# 10 4 2 3
gdb_test "print x+y-z" "12"
gdb_test "print x+y*z" "18"
-
-# x y z w
-# 10 4 3 3
-
-gdb_test "set variable z=3" ""
-gdb_test "print x+y%z" "11"
-gdb_test "print x+y/z" "11"
-
-# x y z w
-# 10 4 2 3
-
-gdb_test "set variable z=2" ""
+gdb_test "print x+y%w" "11"
+gdb_test "print x+y/w" "11"
gdb_test "print x-y*z" "2"
gdb_test "print x-y%z" "10"
gdb_test "print x-y/z" "8"
gdb_test "print x*y/z" "20"
-
-# x y z w
-# 10 4 3 3
-
-gdb_test "set variable z=3" ""
-gdb_test "print x*y%z" "1"
-gdb_test "print x/y%z" "2"
+gdb_test "print x*y%w" "1"
+gdb_test "print x/y%w" "2"
# test use of parentheses to enforce different order of evaluation
-gdb_test "print x-(y+z)" "3"
-gdb_test "print x/(y*z)" "0"
-gdb_test "print x-(y/z)" "9"
-gdb_test "print (x+y)*z" "42"
+gdb_test "print x-(y+w)" "3"
+gdb_test "print x/(y*w)" "0"
+gdb_test "print x-(y/w)" "9"
+gdb_test "print (x+y)*w" "42"