]> granicus.if.org Git - check/commitdiff
Use env to find shell to use
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Mon, 12 May 2014 01:38:24 +0000 (01:38 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Mon, 12 May 2014 01:38:24 +0000 (01:38 +0000)
On at least one platform (Solaris), the shell located at /bin/sh is
not a compliant shell. Using env as a form of redirection to find
a sh program, the PATH can be changed to find a compliant sh
to use. On platforms where /bin/sh is compliant, env should work
just fine.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1133 64e312b2-a51f-0410-8e61-82d0ca0eb02a

tests/test_check_nofork.sh
tests/test_log_output.sh
tests/test_mem_leaks.sh
tests/test_output.sh
tests/test_tap_output.sh
tests/test_xml_output.sh

index 9fa1e112c9f6a5b868bc0ab63e269ca6f69aff16..fff318edf9cd52f742f8deed8876c144403cb42a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
 
 . ./test_vars
 
index 9de3a80b5be00c31f8cc2d389618b36173ec1054..39566aecfc79bf6ca271445ed82292908ec8db0e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
 
 OUTPUT_FILE=test.log
 
index e70c9053ca6876f087dcda64d457dc8cbdd2a466..44d6d30366f225842c3b0bde11d3054ee8304c19 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
 
 UNIT_TEST=./check_mem_leaks
 VALGRIND_LOG_FILE=${UNIT_TEST}.valgrind
index 5e36c1e6b020eae5537767bc113ff4c38c0024f2..c1b31bd0504c8feac253353fdf9fd91bb8631a30 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
 
 . ./test_vars
 . $(dirname $0)/test_output_strings
index 03af402a028ff9957975e2f720d8a4ae61d4d1a7..b74b8064a3112ea05c1a3359689d2fab456b635f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
 
 OUTPUT_FILE=test.tap
 
index 4c87b73a1525169bbf7d8e4b671e84844afe0ad5..7497f376057c60730b6e0949ba0b1391a802adf5 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
 
 OUTPUT_FILE=test.xml
 CK_DEFAULT_TIMEOUT=4