diff options
Diffstat (limited to 'gdb/testsuite/gdb.python/lib-types.exp')
-rw-r--r-- | gdb/testsuite/gdb.python/lib-types.exp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/gdb/testsuite/gdb.python/lib-types.exp b/gdb/testsuite/gdb.python/lib-types.exp index 6be49e1..fde0740 100644 --- a/gdb/testsuite/gdb.python/lib-types.exp +++ b/gdb/testsuite/gdb.python/lib-types.exp @@ -18,20 +18,12 @@ load_lib gdb-python.exp -set testfile "lib-types" -set srcfile ${testfile}.cc -set binfile ${objdir}/${subdir}/${testfile} -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug c++}] != "" } { - untested "Couldn't compile ${srcfile}" +standard_testfile .cc + +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 } |