Index: gdb/testsuite/gdb.python/py-shared.exp |
diff --git a/gdb/testsuite/gdb.python/py-shared.exp b/gdb/testsuite/gdb.python/py-shared.exp |
index fa57de7dd0ed319d90f587a1ffd97e14c2913ba2..454a325260eb3be5afbdfb25e5ccbd4cda0d0e5f 100644 |
--- a/gdb/testsuite/gdb.python/py-shared.exp |
+++ b/gdb/testsuite/gdb.python/py-shared.exp |
@@ -21,12 +21,11 @@ if {[skip_shlib_tests]} { |
return 0 |
} |
-set testfile "py-shared" |
-set srcfile ${testfile}.c |
+standard_testfile |
+ |
set libfile "py-shared-sl" |
set libsrc ${libfile}.c |
-set library ${objdir}/${subdir}/${libfile}.sl |
-set binfile ${objdir}/${subdir}/${testfile} |
+set library [standard_output_file ${libfile}.sl] |
if { [gdb_compile_shlib ${srcdir}/${subdir}/${libsrc} ${library} "debug"] != "" } { |
untested "Could not compile shared library." |
@@ -41,10 +40,7 @@ if { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable $exec_opt |
} |
# Start with a fresh gdb. |
-gdb_exit |
-gdb_start |
-gdb_reinitialize_dir $srcdir/$subdir |
-gdb_load ${binfile} |
+clean_restart $testfile |
gdb_load_shlibs ${library} |
# Skip all tests if Python scripting is not enabled. |