Index: gdb/testsuite/gdb.cp/pr-574.exp |
diff --git a/gdb/testsuite/gdb.cp/pr-574.exp b/gdb/testsuite/gdb.cp/pr-574.exp |
index abc38d16a1c84e6795045a82bb798016586abc5d..50bce1898b54bfffcb2c883853d064d9774fcb24 100644 |
--- a/gdb/testsuite/gdb.cp/pr-574.exp |
+++ b/gdb/testsuite/gdb.cp/pr-574.exp |
@@ -20,35 +20,22 @@ |
# This file is part of the gdb testsuite |
-if $tracelevel then { |
- strace $tracelevel |
- } |
- |
if { [skip_cplus_tests] } { continue } |
# |
# test running programs |
# |
-set testfile "pr-574" |
-set srcfile ${testfile}.cc |
-set binfile ${objdir}/${subdir}/${testfile} |
+standard_testfile .cc |
-if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug c++}] != "" } { |
- untested pr-574.exp |
- return -1 |
+if [get_compiler_info "c++"] { |
+ return -1 |
} |
-if [get_compiler_info ${binfile} "c++"] { |
+if {[prepare_for_testing $testfile.exp $testfile $srcfile {debug c++}]} { |
return -1 |
} |
-gdb_exit |
-gdb_start |
-gdb_reinitialize_dir $srcdir/$subdir |
-gdb_load ${binfile} |
- |
- |
if ![runto_main] then { |
perror "couldn't run to breakpoint" |
continue |