]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2001-06-24 Michael Chastain <chastain@redhat.com>
authorMichael Chastain <mec@google.com>
Mon, 9 Jul 2001 21:42:52 +0000 (21:42 +0000)
committerMichael Chastain <mec@google.com>
Mon, 9 Jul 2001 21:42:52 +0000 (21:42 +0000)
* gdb.base/arithmet.exp: Remove some tests to make all test names
unique.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/arithmet.exp

index 086a30eb85671879cae2a21c21769308666ca65f..a10cd41be5bc23dd0388e0e8a4312b655f607182 100644 (file)
@@ -1,3 +1,8 @@
+2001-06-24  Michael Chastain  <chastain@redhat.com>
+
+       * gdb.base/arithmet.exp: Remove some tests to make all test names
+       unique.
+
 2001-07-03  Michael Snyder  <msnyder@redhat.com>
 
        * gdb.c++/classes.exp: Accept both "foo(void)" and "foo()" in
index 57afc8d7cf235018de6f625a13f72fb42e40762d..6e7e6852530dd90692016bc19bd88565b235e23b 100644 (file)
@@ -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"