]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.python/py-shared.exp
* lib/gdb-python.exp: New file.
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.python / py-shared.exp
index 41394b43416318e670c855ee2994734413dfa466..28b4270b46572de00c076189fded8abcccb2c0cf 100644 (file)
@@ -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