This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
[patch] Fix for failuire in gdb.base/display.exp
- From: ppluzhnikov at google dot com (Paul Pluzhnikov)
- To: archer at sourceware dot org
- Cc: ppluzhnikov at google dot com
- Date: Mon, 3 Nov 2008 10:38:28 -0800 (PST)
- Subject: [patch] Fix for failuire in gdb.base/display.exp
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta;t=1225737511; bh=FwW4tpDizcSAQV+xMctDwN2P4t8=;h=DomainKey-Signature:To:Cc:Subject:Message-Id:Date:From; b=DjP/afMYZCnYA4W5aQmQFA7yvUCyfs1r/p7IqGj/RaXsM12XPEE1c09RiRGxQZUeCOZsTvgaND5KM+fr0zhM2g==
- Domainkey-signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns;h=to:cc:subject:message-id:date:from;b=sMW8cEH0i/NfFFf4QaBMkhdT1/mHZjcP+Ed+blEtOAKHT+aKGiiLc5KpqWbeqe/c71LMrJWpok5MmuWV20dvFQ==
Greetings,
I committed the patch below as obvious.
--
Paul Pluzhnikov
2008-11-03 Paul Pluzhnikov <ppluzhnikov@google.com>
* gdb.base/display.exp: print/r is now valid.
diff --git a/gdb/testsuite/gdb.base/display.exp b/gdb/testsuite/gdb.base/display.exp
index 7e8dd15..fccf160 100644
--- a/gdb/testsuite/gdb.base/display.exp
+++ b/gdb/testsuite/gdb.base/display.exp
@@ -180,8 +180,12 @@ gdb_test "printf \"%p\\n\", 1" "0x1"
# play with "print", too
#
-gdb_test "print/r j" ".*Undefined output format.*"
-gdb_test "print j" ".*" "debug test output"
+gdb_test "print/z j" ".*Undefined output format.*"
+gdb_test "print/d j" " = 0\[\\r\\n\]+" "debug test output 1"
+gdb_test "print/r j" " = 0\[\\r\\n\]+" "debug test output 1a"
+gdb_test "print/x j" " = 0x0\[\\r\\n\]+" "debug test output 2"
+gdb_test "print/r j" " = 0x0\[\\r\\n\]+" "debug test output 2a"
+gdb_test "print j" " = 0\[\\r\\n\]+" "debug test output 3"
# x/0 j doesn't produce any output and terminates PA64 process when testing
if [istarget "hppa2.0w-hp-hpux11*"] {