Cleanups. Now passes!
authorAndrew Cagney <cagney@redhat.com>
Thu, 30 Aug 2001 01:45:30 +0000 (01:45 +0000)
committerAndrew Cagney <cagney@redhat.com>
Thu, 30 Aug 2001 01:45:30 +0000 (01:45 +0000)
gdb/testsuite/gdb.mi/ChangeLog
gdb/testsuite/gdb.mi/mi-var-cmd.exp
gdb/testsuite/gdb.mi/mi0-var-cmd.exp

index 71e0482923b28a2e2c06184230867969d0c99fb7..a9681db91883a06665979efccde0219c144911f5 100644 (file)
@@ -1,3 +1,8 @@
+2001-08-29  Andrew Cagney  <cagney@redhat.com>
+
+       * mi-var-cmd.exp, mi0-var-cmd.exp: Variable lpcharacter has one
+       child.  Soften floating point tests.
+
 2001-08-09  Andrew Cagney  <ac131313@redhat.com>
 
        * mi0-var-block.exp, mi0-stack.exp, mi0-simplerun.exp,
index a916ab353f5ffbc2ec844da8bc8805270974b37f..03540b496b23271474089ddef768ebdc5a14abc1 100644 (file)
@@ -100,7 +100,7 @@ mi_gdb_test "-var-create lcharacter * lcharacter" \
        "create local variablelcharacter "
 
 mi_gdb_test "-var-create lpcharacter * lpcharacter" \
-       "\\^done,name=\"lpcharacter\",numchild=\"0\",type=\"char \\*\"" \
+       "\\^done,name=\"lpcharacter\",numchild=\"1\",type=\"char \\*\"" \
        "create local variable lpcharacter"
 
 mi_gdb_test "-var-create llong * llong" \
@@ -391,14 +391,14 @@ mi_gdb_test "-var-assign lplong &llong" \
        "\\^done,value=\"$hex\"" \
        "assign to lplong"
 
-mi_gdb_test "-var-assign lfloat 3.4" \
-       "\\^done,value=\"3.4.*\"" \
+mi_gdb_test "-var-assign lfloat 3.4567" \
+       "\\^done,value=\"3.45.*\"" \
        "assign to lfloat"
 mi_gdb_test "-var-evaluate-expression lfloat" \
-       "\\^done,value=\"3.4.*\"" \
+       "\\^done,value=\"3.45.*\"" \
        "eval lfloat"
-mi_gdb_test "-var-assign lfloat 1.2" \
-       "\\^done,value=\"1.2.*\"" \
+mi_gdb_test "-var-assign lfloat 1.2345" \
+       "\\^done,value=\"1.23.*\"" \
        "assign to lfloat"
 
 mi_gdb_test "-var-assign lpfloat &lfloat+4" \
index df3b9f010a999207c2d3fa3d20458998989e3a24..c3ed0b2232a79b44986d89673409c157c0210f9f 100644 (file)
@@ -100,7 +100,7 @@ mi_gdb_test "-var-create lcharacter * lcharacter" \
        "create local variablelcharacter "
 
 mi_gdb_test "-var-create lpcharacter * lpcharacter" \
-       "\\^done,name=\"lpcharacter\",numchild=\"0\",type=\"char \\*\"" \
+       "\\^done,name=\"lpcharacter\",numchild=\"1\",type=\"char \\*\"" \
        "create local variable lpcharacter"
 
 mi_gdb_test "-var-create llong * llong" \
@@ -391,14 +391,14 @@ mi_gdb_test "-var-assign lplong &llong" \
        "\\^done,value=\"$hex\"" \
        "assign to lplong"
 
-mi_gdb_test "-var-assign lfloat 3.4" \
-       "\\^done,value=\"3.4.*\"" \
+mi_gdb_test "-var-assign lfloat 3.4567" \
+       "\\^done,value=\"3.45.*\"" \
        "assign to lfloat"
 mi_gdb_test "-var-evaluate-expression lfloat" \
-       "\\^done,value=\"3.4.*\"" \
+       "\\^done,value=\"3.45.*\"" \
        "eval lfloat"
-mi_gdb_test "-var-assign lfloat 1.2" \
-       "\\^done,value=\"1.2.*\"" \
+mi_gdb_test "-var-assign lfloat 1.2345" \
+       "\\^done,value=\"1.23.*\"" \
        "assign to lfloat"
 
 mi_gdb_test "-var-assign lpfloat &lfloat+4" \