* gdb.linespec/ls-dollar.exp: Use standard_testfile.
* gdb.linespec/linespec.exp: Use standard_testfile.
+2012-06-25 Tom Tromey <tromey@redhat.com>
+
+ * gdb.linespec/ls-errs.exp: Use standard_testfile.
+ * gdb.linespec/ls-dollar.exp: Use standard_testfile.
+ * gdb.linespec/linespec.exp: Use standard_testfile.
+
2012-06-25 Tom Tromey <tromey@redhat.com>
* gdb.modula2/unbounded-array.exp: Use standard_testfile,
# Tests of ambiguous linespecs.
-set testfile linespec
+standard_testfile lspec.cc
-set exefile lspec
-set binfile ${objdir}/${subdir}/${exefile}
+set exefile $testfile
set baseone base/one/thefile.cc
set basetwo base/two/thefile.cc
}
if {[prepare_for_testing ${testfile}.exp $exefile \
- [list lspec.cc $baseone $basetwo] \
+ [list $srcfile $baseone $basetwo] \
{debug nowarnings c++}]} {
return -1
}
# Tests for dollar signs in linespecs
-set base "ls-dollar"
-set srcfile "$base.cc"
-set testfile "$base.exp"
-set exefile $base
+standard_testfile .cc
+set exefile $testfile
if {[skip_cplus_tests]} {
unsupported "skipping C++ tests"
# Tests for linespec error conditions
-set base ls-errs
-set srcfile "$base.c"
-set testfile "$base.exp"
-set exefile $base
+standard_testfile
+set exefile $testfile
if {[prepare_for_testing $testfile $exefile $srcfile \
{debug nowarnings}]} {