aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2009-04-13 20:54:59 +0000
committerTom Tromey <tromey@redhat.com>2009-04-13 20:54:59 +0000
commit18e8c3bc8aea1c1eefa888ab34832abce1898a9d (patch)
tree65a07764603c1a1d54f1a5ac9852dca21932204d /gdb/testsuite/gdb.python
parent168a2f7744f9a9cdcb53b1861a941cc40291102f (diff)
downloadgdb-18e8c3bc8aea1c1eefa888ab34832abce1898a9d.zip
gdb-18e8c3bc8aea1c1eefa888ab34832abce1898a9d.tar.gz
gdb-18e8c3bc8aea1c1eefa888ab34832abce1898a9d.tar.bz2
gdb
* python/python-frame.c (frapy_richcompare): Return Py_NotImplemented, not an error. Handle Py_NE as well. gdb/testsuite * gdb.python/python-frame.exp (gdb_py_test_silent_cmd): Test != operator on Frame.
Diffstat (limited to 'gdb/testsuite/gdb.python')
-rw-r--r--gdb/testsuite/gdb.python/python-frame.exp2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.python/python-frame.exp b/gdb/testsuite/gdb.python/python-frame.exp
index b1ee9be..82b526e 100644
--- a/gdb/testsuite/gdb.python/python-frame.exp
+++ b/gdb/testsuite/gdb.python/python-frame.exp
@@ -70,6 +70,8 @@ gdb_py_test_silent_cmd "python f0 = f1.newer ()" "get first frame" 0
gdb_test "python print 'result =', f0 == f1" " = False" "test equality comparison (false)"
gdb_test "python print 'result =', f0 == f0" " = True" "test equality comparison (true)"
+gdb_test "python print 'result =', f0 != f1" " = True" "test inequality comparison (true)"
+gdb_test "python print 'result =', f0 != f0" " = False" "test inequality comparison (false)"
gdb_test "python print 'result =', f0.is_valid ()" " = True" "test Frame.is_valid"
gdb_test "python print 'result =', f0.name ()" " = f2" "test Frame.name"
gdb_test "python print 'result =', f0.type () == gdb.NORMAL_FRAME" " = True" "test Frame.type"