diff options
Diffstat (limited to 'gdb/testsuite/gdb.python/py-shared.exp')
-rw-r--r-- | gdb/testsuite/gdb.python/py-shared.exp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/gdb/testsuite/gdb.python/py-shared.exp b/gdb/testsuite/gdb.python/py-shared.exp index 41394b4..28b4270 100644 --- a/gdb/testsuite/gdb.python/py-shared.exp +++ b/gdb/testsuite/gdb.python/py-shared.exp @@ -15,6 +15,8 @@ # This file is part of the GDB testsuite. +load_lib gdb-python.exp + if {[skip_shlib_tests]} { return 0 } @@ -38,17 +40,6 @@ if { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable $exec_opt return -1 } -# Run a command in GDB, and report a failure if a Python exception is thrown. -# If report_pass is true, report a pass if no exception is thrown. -proc gdb_py_test_silent_cmd {cmd name report_pass} { - global gdb_prompt - - gdb_test_multiple $cmd $name { - -re "Traceback.*$gdb_prompt $" { fail $name } - -re "$gdb_prompt $" { if $report_pass { pass $name } } - } -} - # Start with a fresh gdb. gdb_exit gdb_start |