Exploit 'prepare_for_testing' etc. for 'Dwarf::assemble'-generated files
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.dwarf2 / implptrconst.exp
index 924d4c9ea9698489324d941a2f1e0ef16346d5c2..46c26082f103b3f9c3f8922eaf15ee46ca190fd1 100644 (file)
@@ -85,17 +85,8 @@ Dwarf::assemble $asm_file {
     }
 }
 
-if  {[gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile}1.o \
-         object {nodebug}] != ""} {
-    return -1
-}
-
-if  {[gdb_compile $asm_file ${binfile}2.o object {nodebug}] != ""} {
-    return -1
-}
-
-if  {[gdb_compile [list ${binfile}1.o ${binfile}2.o] \
-         "${binfile}" executable {}] != ""} {
+if { [build_executable ${testfile}.exp ${testfile} \
+         [list $srcfile $asm_file] {nodebug}] } {
     return -1
 }
 
This page took 0.024584 seconds and 4 git commands to generate.