summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@specifix.com>2002-01-10 18:27:09 +0000
committerMichael Snyder <msnyder@specifix.com>2002-01-10 18:27:09 +0000
commit862454e5c7428e027da8c1a2372e63397a979480 (patch)
treef0e9e7d5e64697249a54fc374e2f77e7d8110932
parent163a1610e859330c80ac7f7bb6e540494cc3402e (diff)
downloadgdb-862454e5c7428e027da8c1a2372e63397a979480.tar.gz
2002-01-10 Michael Snyder <msnyder@redhat.com>
* gdb.c++/namespace.exp: Accept both '\0' and '\000'.
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.c++/namespace.exp2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index f230de9fb3b..3ac5b4ce966 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2002-01-10 Michael Snyder <msnyder@redhat.com>
+
+ * gdb.c++/namespace.exp: Accept both '\0' and '\000'.
+
2002-01-10 Jason Merrill <jason@redhat.com>
* gdb.c++/namespace.exp: '\0', not '\000'.
diff --git a/gdb/testsuite/gdb.c++/namespace.exp b/gdb/testsuite/gdb.c++/namespace.exp
index a437cd46241..b06133ee03a 100644
--- a/gdb/testsuite/gdb.c++/namespace.exp
+++ b/gdb/testsuite/gdb.c++/namespace.exp
@@ -80,7 +80,7 @@ gdb_test "up" ".*main.*" "up from marker1"
send_gdb "print 'AAA::c'\n"
gdb_expect {
- -re "\\$\[0-9\]* = 0 '\\\\0'\r\n$gdb_prompt $" { pass "print 'AAA::c'" }
+ -re "\\$\[0-9\]* = 0 '\\\\(0|000)'\r\n$gdb_prompt $" { pass "print 'AAA::c'" }
-re ".*$gdb_prompt $" { fail "print 'AAA::c'" }
timeout { fail "(timeout) print 'AAA::c'" }
}