Exploit 'prepare_for_testing' etc. for 'Dwarf::assemble'-generated files
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.dwarf2 / missing-sig-type.exp
index 8ccfa43ccb1017af7ff0c602a9003e36b2d8c5c1..9012604a7d8ef68bb865e097982357b1638ed5cf 100644 (file)
@@ -49,20 +49,9 @@ 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 {c++}] != ""} {
-    return -1
-}
-
-clean_restart ${testfile}
-
 gdb_test "ptype foo" "type = <unknown type .*>"
This page took 0.024967 seconds and 4 git commands to generate.