S390: Fix output path for s390-multiarch test case
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.arch / s390-multiarch.exp
index 00b3589827d3d3481cfc6055eb1d5d6c13d54ffa..3bed2792ec27bdb6b85f87ba144b7780cf93e2f7 100644 (file)
@@ -28,9 +28,8 @@ if { ![isnative] || ![istarget s390x-*-* ] } {
     return
 }
 
-set testfile "s390-multiarch"
-set srcfile "${srcdir}/${subdir}/${testfile}.c"
-set binprefix "${objdir}/${subdir}/${testfile}"
+standard_testfile
+set binprefix $binfile
 
 gdb_exit
 
@@ -39,13 +38,13 @@ if { [get_compiler_info] } {
 }
 
 proc compile_and_dump {variant ccopts binfile} {
-    global srcfile
+    global srcdir subdir srcfile
     set compile_flags {debug}
     foreach opt $ccopts {
        lappend compile_flags "additional_flags=$opt"
     }
     set test "compile ($variant)"
-    if { [gdb_compile $srcfile $binfile executable $compile_flags] != "" } {
+    if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "$binfile" executable $compile_flags] != "" } {
        fail $test
        return {}
     }
This page took 0.023744 seconds and 4 git commands to generate.