summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp/ovsrch.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.cp/ovsrch.exp')
-rw-r--r--gdb/testsuite/gdb.cp/ovsrch.exp11
1 files changed, 3 insertions, 8 deletions
diff --git a/gdb/testsuite/gdb.cp/ovsrch.exp b/gdb/testsuite/gdb.cp/ovsrch.exp
index 5af536860a1..b31c65578ab 100644
--- a/gdb/testsuite/gdb.cp/ovsrch.exp
+++ b/gdb/testsuite/gdb.cp/ovsrch.exp
@@ -55,15 +55,10 @@ proc test_class {class} {
if { [skip_cplus_tests] } { continue }
# Test for c++/11734
-set testfile "ovsrch"
-set binfile [file join $objdir $subdir $testfile]
+standard_testfile ovsrch1.cc ovsrch2.cc ovsrch3.cc ovsrch4.cc
-set srcfiles {}
-for {set i 1} {$i < 5} {incr i} {
- lappend srcfiles $testfile$i.cc
-}
-
-if {[prepare_for_testing $testfile $testfile $srcfiles {c++ debug}]} {
+if {[prepare_for_testing $testfile $testfile \
+ [list $srcfile $srcfile2 $srcfile3 $srcfile4] {c++ debug}]} {
return -1
}