diff options
author | Tom Tromey <tom@tromey.com> | 2016-10-31 11:23:34 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2016-11-08 09:10:57 -0700 |
commit | 7353f2470c2eda19c31c9fa44c315c7c69dea7c4 (patch) | |
tree | 9f106cebab5179b43217b0ef59c238876312919e /gdb/testsuite | |
parent | Fix some error-handling bugs in python frame filters (diff) | |
download | binutils-gdb-7353f2470c2eda19c31c9fa44c315c7c69dea7c4.tar.gz binutils-gdb-7353f2470c2eda19c31c9fa44c315c7c69dea7c4.tar.bz2 binutils-gdb-7353f2470c2eda19c31c9fa44c315c7c69dea7c4.zip |
Fix py-value.exp failure on Python 3
I happened to notice that one test in py-value.exp did not work
properly with Python 3. This patch fixes the problem.
2016-11-08 Tom Tromey <tom@tromey.com>
* gdb.python/py-value.exp (test_value_creation): Make "long" test
depend on Python 2.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.python/py-value.exp | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index cb591f4ab08..b5319ae00d7 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2016-11-08 Tom Tromey <tom@tromey.com> + * gdb.python/py-value.exp (test_value_creation): Make "long" test + depend on Python 2. + +2016-11-08 Tom Tromey <tom@tromey.com> + * gdb.python/py-framefilter.py (ElidingFrameDecorator.address): New method. diff --git a/gdb/testsuite/gdb.python/py-value.exp b/gdb/testsuite/gdb.python/py-value.exp index 89be6598cbf..39b03850b61 100644 --- a/gdb/testsuite/gdb.python/py-value.exp +++ b/gdb/testsuite/gdb.python/py-value.exp @@ -56,7 +56,11 @@ proc test_value_creation {} { } gdb_py_test_silent_cmd "python l = gdb.Value(0xffffffff12345678)" "create large unsigned 64-bit value" 1 - gdb_test "python print long(l)" "18446744069720004216" "large unsigned 64-bit int conversion to python" + if { $gdb_py_is_py3k == 0 } { + gdb_test "python print long(l)" "18446744069720004216" "large unsigned 64-bit int conversion to python" + } else { + gdb_test "python print (int(l))" "18446744069720004216" "large unsigned 64-bit int conversion to python" + } gdb_py_test_silent_cmd "python f = gdb.Value (1.25)" "create double value" 1 gdb_py_test_silent_cmd "python a = gdb.Value ('string test')" "create 8-bit string value" 1 |