This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FYI: clean up gdb.linespec


I'm checking this in.

This changes gdb.linespec to use standard_testfile.

Regtested on x86-64 Fedora 16.

Tom

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.

Index: gdb.linespec/linespec.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.linespec/linespec.exp,v
retrieving revision 1.4
diff -u -r1.4 linespec.exp
--- gdb.linespec/linespec.exp	16 Jan 2012 20:40:53 -0000	1.4
+++ gdb.linespec/linespec.exp	25 Jun 2012 20:30:03 -0000
@@ -15,10 +15,9 @@
 
 # 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
@@ -29,7 +28,7 @@
 }
 
 if {[prepare_for_testing ${testfile}.exp $exefile \
-	 [list lspec.cc $baseone $basetwo] \
+	 [list $srcfile $baseone $basetwo] \
 	 {debug nowarnings c++}]} {
     return -1
 }
Index: gdb.linespec/ls-dollar.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.linespec/ls-dollar.exp,v
retrieving revision 1.1
diff -u -r1.1 ls-dollar.exp
--- gdb.linespec/ls-dollar.exp	28 Mar 2012 17:33:33 -0000	1.1
+++ gdb.linespec/ls-dollar.exp	25 Jun 2012 20:30:03 -0000
@@ -15,10 +15,8 @@
 
 # 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"
Index: gdb.linespec/ls-errs.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.linespec/ls-errs.exp,v
retrieving revision 1.2
diff -u -r1.2 ls-errs.exp
--- gdb.linespec/ls-errs.exp	13 Jun 2012 18:06:07 -0000	1.2
+++ gdb.linespec/ls-errs.exp	25 Jun 2012 20:30:03 -0000
@@ -15,10 +15,8 @@
 
 # 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}]} {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]