diff options
Diffstat (limited to 'gdb/testsuite/gdb.python/py-symtab.exp')
-rw-r--r-- | gdb/testsuite/gdb.python/py-symtab.exp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/gdb/testsuite/gdb.python/py-symtab.exp b/gdb/testsuite/gdb.python/py-symtab.exp index 6eec611..9aef863 100644 --- a/gdb/testsuite/gdb.python/py-symtab.exp +++ b/gdb/testsuite/gdb.python/py-symtab.exp @@ -18,20 +18,12 @@ load_lib gdb-python.exp -set testfile "py-symbol" -set srcfile ${testfile}.c -set binfile ${objdir}/${subdir}/${testfile} -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { - untested "Couldn't compile ${srcfile}" +standard_testfile py-symbol.c + +if {[prepare_for_testing $testfile.exp $testfile $srcfile debug]} { return -1 } -# Start with a fresh gdb. -gdb_exit -gdb_start -gdb_reinitialize_dir $srcdir/$subdir -gdb_load ${binfile} - # Skip all tests if Python scripting is not enabled. if { [skip_python_tests] } { continue } |