Index: gdb/testsuite/gdb.cp/overload.exp |
diff --git a/gdb/testsuite/gdb.cp/overload.exp b/gdb/testsuite/gdb.cp/overload.exp |
index 10bd4de3f4af4b7821f0b7762bac8e6a6a8ed5d8..43eeabf80098e4a72c0326733fea08c0844dea4f 100644 |
--- a/gdb/testsuite/gdb.cp/overload.exp |
+++ b/gdb/testsuite/gdb.cp/overload.exp |
@@ -20,30 +20,18 @@ |
# Tests for overloaded member functions. |
-if $tracelevel then { |
- strace $tracelevel |
-} |
- |
set ws "\[\r\n\t \]+" |
set nl "\[\r\n\]+" |
if { [skip_cplus_tests] } { continue } |
-set testfile "overload" |
-set srcfile ${testfile}.cc |
-set binfile ${objdir}/${subdir}/${testfile} |
+standard_testfile .cc |
-if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug c++}] != "" } { |
- untested overload.exp |
- return -1 |
+if {[prepare_for_testing $testfile.exp $testfile $srcfile {debug c++}]} { |
+ return -1 |
} |
-gdb_exit |
-gdb_start |
-gdb_reinitialize_dir $srcdir/$subdir |
-gdb_load ${binfile} |
- |
# Set it up at a breakpoint so we can play with the variable values. |
if ![runto 'marker1'] then { |