diff options
Diffstat (limited to 'gdb/testsuite/gdb.python/py-arch.exp')
-rw-r--r-- | gdb/testsuite/gdb.python/py-arch.exp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.python/py-arch.exp b/gdb/testsuite/gdb.python/py-arch.exp index a49d50a..554f05f 100644 --- a/gdb/testsuite/gdb.python/py-arch.exp +++ b/gdb/testsuite/gdb.python/py-arch.exp @@ -57,6 +57,8 @@ gdb_test "python print (\"addr\" in insn)" "True" "test key addr" gdb_test "python print (\"asm\" in insn)" "True" "test key asm" gdb_test "python print (\"length\" in insn)" "True" "test key length" -# Negative test -gdb_test "python arch.disassemble(0, 0)" ".*gdb\.MemoryError.*" \ - "test bad memory access" +if { ![is_address_zero_readable] } { + # Negative test + gdb_test "python arch.disassemble(0, 0)" ".*gdb\.MemoryError.*" \ + "test bad memory access" +} |