This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

4.1/4.2 PATCH: Run Ada testsuite with CONFIG_SHELL etc.


This patch

	http://gcc.gnu.org/ml/gcc-patches/2005-06/msg00899.html

has been largely ignored by reviewers, but is still necessary to allow
running the Ada testsuite on Tru64 UNIX V4.0F.  I've incorporated a
suggestion by Andreas Schwab in this resubmission, but it seems best to use
both parts of the solution.

I've been running with this patch for months now, and I think it almost
qualifies as obvious.

Ok for at least 4.1 branch and mainline?  It applies to the 3.4 and 4.0
branches as well, but I don't have the resources to regularly test those.

	Rainer

-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University


Thu Jun  9 20:24:34 2005  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>

	ada:
	* Make-lang.in (check-gnat): Run run_acats with $(SHELL).

	testsuite:
	* ada/acats/run_acats: Use portable variant of "$@".

Index: gcc/testsuite/ada/acats/run_acats
===================================================================
--- gcc/testsuite/ada/acats/run_acats	(revision 110669)
+++ gcc/testsuite/ada/acats/run_acats	(working copy)
@@ -52,4 +52,4 @@ echo exec $host_gnatmake '"$@"' >> host_
 
 chmod +x host_gnatmake
 
-exec $testdir/run_all.sh "$@"
+exec $testdir/run_all.sh ${1+"$@"}
Index: gcc/ada/Make-lang.in
===================================================================
--- gcc/ada/Make-lang.in	(revision 110669)
+++ gcc/ada/Make-lang.in	(working copy)
@@ -822,7 +822,7 @@ ACATSDIR = $(TESTSUITEDIR)/ada/acats
 check-gnat:
 	test -d $(ACATSDIR) || mkdir -p $(ACATSDIR)
 	testdir=`cd ${srcdir}/${ACATSDIR}; ${PWD_COMMAND}`; \
-	export testdir; cd $(ACATSDIR); $${testdir}/run_acats $(CHAPTERS)
+	export testdir; cd $(ACATSDIR); $(SHELL) $${testdir}/run_acats $(CHAPTERS)
 
 .PHONY: check-gnat
 


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