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]

[commit] Rename .C test files


The use of .C files to mean C++ is a little sketchy on
case-insensitive file systems, and not related to the point of the
test.  I renamed them after a brush with the Symbian SDK, which
chooses which compiler to use based on the case-insensitive
file extension.

Tested on mips-linux-gnu, checked in.

-- 
Daniel Jacobowitz
CodeSourcery

2008-04-30  Daniel Jacobowitz  <dan@codesourcery.com>

	* gdb.cp/hang.exp: Use .cc instead of .C.
	* gdb.cp/hang1.cc, gdb.cp/hang2.cc, gdb.cp/hang3.cc: Renamed from ...
	* gdb.cp/hang1.C, gdb.cp/hang2.C, gdb.cp/hang3.C: ... here.

--- gdb.cp/hang.exp	(revision 1025)
+++ gdb.cp/hang.exp	(local)
@@ -26,7 +26,7 @@ set testfile hang
 set binfile ${objdir}/${subdir}/${testfile}
 
 foreach file {hang1 hang2 hang3} {
-    if {[gdb_compile "${srcdir}/${subdir}/${file}.C" "${file}.o" object {c++ debug}] != ""} {
+    if {[gdb_compile "${srcdir}/${subdir}/${file}.cc" "${file}.o" object {c++ debug}] != ""} {
         untested hang.exp
         return -1
     }
--- gdb.cp/hang1.cc	(revision 1025)
+++ gdb.cp/hang1.cc	(local)
@@ -0,0 +1,3 @@
+#include "hang.H"
+
+int main (int argc, char **argv) { return 0; }
--- gdb.cp/hang2.cc	(revision 1025)
+++ gdb.cp/hang2.cc	(local)
@@ -0,0 +1,8 @@
+#include "hang.H"
+
+struct B
+{
+  int member_of_B;
+};
+
+int var_in_b = 1729;
--- gdb.cp/hang3.cc	(revision 1025)
+++ gdb.cp/hang3.cc	(local)
@@ -0,0 +1,4 @@
+#include "hang.H"
+
+const struct B *const_B_ptr;
+int var_in_hang3 = 42;
--- gdb.cp/hang1.C	(revision 1025)
+++ gdb.cp/hang1.C	(local)
@@ -1,3 +0,0 @@
-#include "hang.H"
-
-int main (int argc, char **argv) { return 0; }
--- gdb.cp/hang2.C	(revision 1025)
+++ gdb.cp/hang2.C	(local)
@@ -1,8 +0,0 @@
-#include "hang.H"
-
-struct B
-{
-  int member_of_B;
-};
-
-int var_in_b = 1729;
--- gdb.cp/hang3.C	(revision 1025)
+++ gdb.cp/hang3.C	(local)
@@ -1,4 +0,0 @@
-#include "hang.H"
-
-const struct B *const_B_ptr;
-int var_in_hang3 = 42;


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