Index: gdb/testsuite/gdb.base/shlib-call.exp |
diff --git a/gdb/testsuite/gdb.base/shlib-call.exp b/gdb/testsuite/gdb.base/shlib-call.exp |
index 5c82d66079843f633e993052eb5ad6b5a252062c..326112d19f1105311edb1e62202c76b0b36c81db 100644 |
--- a/gdb/testsuite/gdb.base/shlib-call.exp |
+++ b/gdb/testsuite/gdb.base/shlib-call.exp |
@@ -1,4 +1,4 @@ |
-# Copyright 1997-2000, 2004, 2007-2012 Free Software Foundation, Inc. |
+# Copyright 1997-2013 Free Software Foundation, Inc. |
# This program is free software; you can redistribute it and/or modify |
# it under the terms of the GNU General Public License as published by |
@@ -33,15 +33,12 @@ if {[skip_shlib_tests]} { |
return 0 |
} |
-set testfile "shmain" |
-set libfile1 "shr1" |
-set libfile2 "shr2" |
-set srcfile ${srcdir}/${subdir}/${testfile}.c |
-set lib1src ${srcdir}/${subdir}/${libfile1}.c |
-set lib2src ${srcdir}/${subdir}/${libfile2}.c |
-set lib1 ${objdir}/${subdir}/${libfile1}.sl |
-set lib2 ${objdir}/${subdir}/${libfile2}.sl |
-set binfile ${objdir}/${subdir}/${testfile} |
+standard_testfile shmain.c shr1.c shr2.c |
+set srcfile ${srcdir}/${subdir}/${srcfile} |
+set lib1src ${srcdir}/${subdir}/${srcfile2} |
+set lib2src ${srcdir}/${subdir}/${srcfile3} |
+set lib1 [standard_output_file shr1.sl] |
+set lib2 [standard_output_file shr2.sl] |
set lib_opts "debug" |
set exec_opts [list debug shlib=${lib1} shlib=${lib2}] |
@@ -59,10 +56,7 @@ if { [gdb_compile_shlib ${lib1src} ${lib1} $lib_opts] != "" |
# Start with a fresh gdb. |
-gdb_exit |
-gdb_start |
-gdb_reinitialize_dir $srcdir/$subdir |
-gdb_load ${binfile} |
+clean_restart ${binfile} |
gdb_load_shlibs $lib1 $lib2 |
gdb_test_no_output "set print sevenbit-strings" |