Index: gdb/testsuite/gdb.cp/infcall-dlopen.exp |
diff --git a/gdb/testsuite/gdb.cp/infcall-dlopen.exp b/gdb/testsuite/gdb.cp/infcall-dlopen.exp |
index e2abde898f36024b01ddf91154f6f2ceffc657e0..4a2c009948ed718b8d086d185fb717015b5d94b5 100644 |
--- a/gdb/testsuite/gdb.cp/infcall-dlopen.exp |
+++ b/gdb/testsuite/gdb.cp/infcall-dlopen.exp |
@@ -17,21 +17,17 @@ if {[skip_shlib_tests]} { |
return 0 |
} |
-if [get_compiler_info not-used] { |
+if [get_compiler_info] { |
return -1 |
} |
-set testfile "infcall-dlopen" |
-set srcmainfile ${testfile}.cc |
-set srclibfile ${testfile}-lib.cc |
-set executable ${testfile} |
-set libfile ${objdir}/${subdir}/${executable}.so |
-set binfile ${objdir}/${subdir}/${executable} |
-set lib_dlopen [shlib_target_file ${executable}.so] |
+standard_testfile .cc infcall-dlopen-lib.cc |
+set libfile [standard_output_file ${testfile}.so] |
+set lib_dlopen [shlib_target_file ${testfile}.so] |
# Use completely arbitrary file for $libfile source. |
-if { [gdb_compile_shlib ${srcdir}/${subdir}/${srclibfile} ${libfile} {debug c++}] != "" |
- || [prepare_for_testing ${testfile}.exp ${executable} ${srcmainfile} {debug c++ shlib_load}] } { |
+if { [gdb_compile_shlib ${srcdir}/${subdir}/${srcfile2} ${libfile} {debug c++}] != "" |
+ || [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} {debug c++ shlib_load}] } { |
return -1 |
} |