components/bash/patches/solaris-016.run-all.patch
changeset 1082 6d49548fa9da
child 5518 c47fe0edc204
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/bash/patches/solaris-016.run-all.patch	Thu Dec 13 15:52:21 2012 -0800
@@ -0,0 +1,31 @@
+--- tests/run-all	1999-10-08 08:07:46.000000000 -0700
++++ tests/run-all	2012-10-10 10:06:33.558822000 -0700
+@@ -1,4 +1,4 @@
+-#! /bin/sh
++#!/bin/bash
+ 
+ PATH=.:$PATH	# just to get recho/zecho/printenv if not run via `make tests'
+ export PATH
+@@ -15,6 +15,11 @@
+ 
+ rm -f /tmp/xx
+ 
++if [ -f /tmp/xx ] ; then
++    echo "someone left a /tmp/xx around. I can't test." 
++    exit 1
++fi
++
+ echo Any output from any test, unless otherwise noted, indicates a possible anomaly
+ 
+ for x in run-*
+@@ -22,8 +27,9 @@
+ 	case $x in
+ 	$0|run-minimal|run-gprof)	;;
+ 	*.orig|*~) ;;
+-	*)	echo $x ; sh $x ;;
++	*) 	echo $x ; ${THIS_SH} $x ;;
+ 	esac
+ done
+ 
+ exit 0
++