python: Add tests for trying to use an invalid Inferior object
authorSimon Marchi <simon.marchi@ericsson.com>
Wed, 12 Sep 2018 22:27:57 +0000 (18:27 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Wed, 12 Sep 2018 22:27:57 +0000 (18:27 -0400)
commit4aa8e6c2387e796649279c2190cd499b579d028c
tree334b82d10a44ba8b1c7d7b627a1330a1c94390c9
parent3c025cfe5efc44eb4dfb03b53dca28e75096dd1e
python: Add tests for trying to use an invalid Inferior object

This patch adds tests for trying to use property or methods on a
gdb.Inferior object that represents an inferior that does not exist
anymore.  We expect an exception to be thrown.

gdb/testsuite/ChangeLog:

* gdb.python/py-inferior.exp: Test using an invalid gdb.Inferior
object.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-inferior.exp