Exploit 'prepare_for_testing' etc. for 'Dwarf::assemble'-generated files
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.dwarf2 / arr-stride.exp
index f2a1f39d82bbdee4c18334a69f1ba71586db75de..c9186227a44e0a90b804fd24f00182a02e8b7b4e 100644 (file)
@@ -83,22 +83,11 @@ Dwarf::assemble $asm_file {
     }
 }
 
-if  {[gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile}1.o \
-         object {nodebug}] != ""} {
+if { [prepare_for_testing ${testfile}.exp ${testfile} \
+         [list $srcfile $asm_file] {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 {}] != ""} {
-    return -1
-}
-
-clean_restart ${testfile}
-
 gdb_test_no_output "set language ada"
 
 gdb_test "ptype pck.table" \
This page took 0.024607 seconds and 4 git commands to generate.