aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorOrjan Friberg <orjanf@axis.com>2001-03-07 17:21:43 +0000
committerOrjan Friberg <orjanf@axis.com>2001-03-07 17:21:43 +0000
commit1b3c55407c44561fb1755808b2a14a76416ba6a0 (patch)
tree893f9e05c7ba7ed49f813fa39831f443f16c12f6 /gdb/testsuite
parent39424bef9143202f0b7fc25b73c81db580eb253c (diff)
downloadgdb-1b3c55407c44561fb1755808b2a14a76416ba6a0.zip
gdb-1b3c55407c44561fb1755808b2a14a76416ba6a0.tar.gz
gdb-1b3c55407c44561fb1755808b2a14a76416ba6a0.tar.bz2
2001-02-26 Orjan Friberg <orjanf@axis.com>
* gdb.base/pointers.c: Don't assume doubles are >= 8 bytes. * gdb.base/pointers.exp: Relax pattern match of decimals.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/gdb.base/pointers.c2
-rw-r--r--gdb/testsuite/gdb.base/pointers.exp2
2 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.base/pointers.c b/gdb/testsuite/gdb.base/pointers.c
index 7a41552..85bfdc9 100644
--- a/gdb/testsuite/gdb.base/pointers.c
+++ b/gdb/testsuite/gdb.base/pointers.c
@@ -194,7 +194,7 @@ int more_code()
L = -234;
UL = 234;
F = 1.25E10;
- D = -1.375E-123;
+ D = -1.25E-37;
pC = &C;
ppC = &pC;
pppC = &ppC;
diff --git a/gdb/testsuite/gdb.base/pointers.exp b/gdb/testsuite/gdb.base/pointers.exp
index b68242d..5f406ad 100644
--- a/gdb/testsuite/gdb.base/pointers.exp
+++ b/gdb/testsuite/gdb.base/pointers.exp
@@ -527,7 +527,7 @@ gdb_expect {
send_gdb "print *pD\n"
gdb_expect {
- -re ".\[0-9\]* = -1.375e-123.*$gdb_prompt $" {
+ -re ".\[0-9\]* = -1.2\[0-9\]*e\\-37.*$gdb_prompt $" {
pass "print value of *pD"
}
-re ".*$gdb_prompt $" { fail "print value of *pD" }