This is the mail archive of the archer@sourceware.org mailing list for the Archer project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Fix for failure in gdb.python/python-prettyprint.exp


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]