This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
[patch] Fix for failure in gdb.python/python-prettyprint.exp
- From: ppluzhnikov at google dot com (Paul Pluzhnikov)
- To: Tom Tromey <tromey at redhat dot com>
- Cc: archer at sourceware dot org
- Date: Mon, 20 Oct 2008 16:41:36 -0700 (PDT)
- Subject: [patch] Fix for failure in gdb.python/python-prettyprint.exp
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta;t=1224546100; bh=QkJkXZ9GXb0D7ROUtIVpXWzEJwk=;h=DomainKey-Signature:To:CC:Subject:Message-Id:Date:From; b=lk/2Gu9nrWrBHwOy39eEOh4CDTuQG9Oo02CyduqaTDJVwzO92uRv5s3Rb6yjDMvNyhb9dbWD5kRj4kRpsckx2A==
- Domainkey-signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns;h=to:cc:subject:message-id:date:from;b=f6DlFaIDskLfopUGiqmS6dAYvZ6vvHVH5b5vgk5+hRw3+OA8evTyw/93bEScUmgN6pW59h7Si5exo0YZpBGL+g==
Tom,
After this change:
commit 24c99704a1274c445251bd3216b99cc0461fe5ec
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Oct 20 11:56:58 2008 -0600
I am getting a failure:
Running ../../../gdb/testsuite/gdb.python/python-prettyprint.exp ...
FAIL: gdb.python/python-prettyprint.exp: print c
FAIL: gdb.python/python-prettyprint.exp: print c
My fix for this is:
diff --git a/gdb/testsuite/gdb.python/python-prettyprint.exp b/gdb/testsuite/gdb.python/python-prettyprint.exp
index 0c9a08b..13308f2 100644
--- a/gdb/testsuite/gdb.python/python-prettyprint.exp
+++ b/gdb/testsuite/gdb.python/python-prettyprint.exp
@@ -73,7 +73,7 @@ proc run_lang_tests {lang} {
}
gdb_test "print x" " = $hex \"this is x\""
- gdb_test "print c" " = \"container $hex .\"container.\" with 2 elements..?.0. = 23..?.1. = 72\""
+ gdb_test "print c" " = container $hex \"container\" with 2 elements..?.0. = 23..?.1. = 72"
}
run_lang_tests "c"
Tom, does the test actually succeed for you?
Why would you get an extra set of quotes (and spaces?) where I do not?
Thanks,
--
Paul Pluzhnikov