diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2015-06-25 13:33:14 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2015-06-25 13:33:14 -0400 |
commit | bf7b9cd9aa4645119792e9d1689e0f014f43934f (patch) | |
tree | 4fe511e0d86f494446279e2f7a41a88057676db9 /gdb | |
parent | 06e78fc77dfcb8a63e44a790c9731db0eaebe87d (diff) | |
download | gdb-bf7b9cd9aa4645119792e9d1689e0f014f43934f.zip gdb-bf7b9cd9aa4645119792e9d1689e0f014f43934f.tar.gz gdb-bf7b9cd9aa4645119792e9d1689e0f014f43934f.tar.bz2 |
py-prettyprint.exp: Add is_address_zero_readable check
gdb/testsuite/ChangeLog:
* gdb.python/py-prettyprint.exp (run_lang_tests): Add
is_address_zero_readable check.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.python/py-prettyprint.exp | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index c78dd29..0db8bac 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-06-25 Simon Marchi <simon.marchi@ericsson.com> + + * gdb.python/py-prettyprint.exp (run_lang_tests): Add + is_address_zero_readable check. + 2015-06-24 Peter Bergner <bergner@vnet.ibm.com> * gdb.arch/powerpc-power.exp <rfebb>: Fixup test results. diff --git a/gdb/testsuite/gdb.python/py-prettyprint.exp b/gdb/testsuite/gdb.python/py-prettyprint.exp index 399f041..bbcee56 100644 --- a/gdb/testsuite/gdb.python/py-prettyprint.exp +++ b/gdb/testsuite/gdb.python/py-prettyprint.exp @@ -92,8 +92,10 @@ proc run_lang_tests {exefile lang} { gdb_test "print cstring" " = \"const string\"" gdb_test "print estring" " = \"embedded x\\\\201\\\\202\\\\203\\\\204\"" - gdb_test "print estring3" \ - " = <error reading variable: Cannot create a lazy string with address 0x0, and a non-zero length.>" + if { ![is_address_zero_readable] } { + gdb_test "print estring3" \ + " = <error reading variable: Cannot create a lazy string with address 0x0, and a non-zero length.>" + } gdb_test_no_output "python pp_ls_encoding = 'UTF-8'" gdb_test "print estring2" "\"embedded \", <incomplete sequence \\\\302>" |