* gdb.python/lib-types.exp: Use standard_testfile,
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.python / py-symtab.exp
index 6eec611677ce01639d592d8e19b8f46959a84209..9aef863a54b8c1130346168edf9abfa4c147eac6 100644 (file)
 
 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 }
 
This page took 0.026115 seconds and 4 git commands to generate.