• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revision7353f2470c2eda19c31c9fa44c315c7c69dea7c4 (tree)
Time2016-11-09 01:10:57
AuthorTom Tromey <tom@trom...>
CommiterTom Tromey

Log Message

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.

Change Summary

Incremental Difference

--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,10 @@
11 2016-11-08 Tom Tromey <tom@tromey.com>
22
3+ * gdb.python/py-value.exp (test_value_creation): Make "long" test
4+ depend on Python 2.
5+
6+2016-11-08 Tom Tromey <tom@tromey.com>
7+
38 * gdb.python/py-framefilter.py (ElidingFrameDecorator.address):
49 New method.
510
--- a/gdb/testsuite/gdb.python/py-value.exp
+++ b/gdb/testsuite/gdb.python/py-value.exp
@@ -56,7 +56,11 @@ proc test_value_creation {} {
5656 }
5757
5858 gdb_py_test_silent_cmd "python l = gdb.Value(0xffffffff12345678)" "create large unsigned 64-bit value" 1
59- gdb_test "python print long(l)" "18446744069720004216" "large unsigned 64-bit int conversion to python"
59+ if { $gdb_py_is_py3k == 0 } {
60+ gdb_test "python print long(l)" "18446744069720004216" "large unsigned 64-bit int conversion to python"
61+ } else {
62+ gdb_test "python print (int(l))" "18446744069720004216" "large unsigned 64-bit int conversion to python"
63+ }
6064
6165 gdb_py_test_silent_cmd "python f = gdb.Value (1.25)" "create double value" 1
6266 gdb_py_test_silent_cmd "python a = gdb.Value ('string test')" "create 8-bit string value" 1