PR c++/8888:
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.cp / pr-1023.exp
index ff5d3fa134e87cbf9b5e3c4167dcdb023fbbfdbd..0f0b5230895f10dec49d6c8b3cf636b4d3cadadc 100644 (file)
@@ -24,23 +24,15 @@ if { [skip_cplus_tests] } { continue }
 # test running programs
 #
 
-set testfile "pr-1023"
-set srcfile ${testfile}.cc
-set binfile ${objdir}/${subdir}/${testfile}
-
-if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug c++}] != "" } {
-     untested pr-1023.exp
-     return -1
-}
+standard_testfile .cc
 
 if [get_compiler_info "c++"] {
     return -1
 }
 
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
-gdb_load ${binfile}
+if {[prepare_for_testing $testfile.exp $testfile $srcfile {debug c++}]} {
+    return -1
+}
 
 if ![runto_main] then {
     perror "couldn't run to breakpoint"
This page took 0.026473 seconds and 4 git commands to generate.