summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/bre2
-rwxr-xr-xtests/ere2
-rw-r--r--tests/init.sh1
-rwxr-xr-xtests/spencer1-locale2
4 files changed, 4 insertions, 3 deletions
diff --git a/tests/bre b/tests/bre
index 817957f6..4a00af41 100755
--- a/tests/bre
+++ b/tests/bre
@@ -16,6 +16,6 @@ fail=0
${AWK-awk} -f $abs_top_srcdir/tests/bre.awk $abs_top_srcdir/tests/bre.tests \
> bre.script || fail=1
-. ./bre.script || fail=1
+${re_shell_-${SHELL-sh}} ./bre.script || fail=1
Exit $fail
diff --git a/tests/ere b/tests/ere
index 04e6a756..03aec361 100755
--- a/tests/ere
+++ b/tests/ere
@@ -16,6 +16,6 @@ fail=0
${AWK-awk} -f $abs_top_srcdir/tests/ere.awk $abs_top_srcdir/tests/ere.tests \
> ere.script || fail=1
-${SHELL-sh} ere.script || fail=1
+${re_shell_-${SHELL-sh}} ere.script || fail=1
Exit $fail
diff --git a/tests/init.sh b/tests/init.sh
index b5c2e3f1..e07c39c8 100644
--- a/tests/init.sh
+++ b/tests/init.sh
@@ -201,6 +201,7 @@ else
*x*) opts_=-x ;;
*) opts_= ;;
esac
+ export re_shell_
exec "$re_shell_" $opts_ "$0" --no-reexec "$@"
echo "$ME_: exec failed" 1>&2
exit 127
diff --git a/tests/spencer1-locale b/tests/spencer1-locale
index 11000fe4..6484490b 100755
--- a/tests/spencer1-locale
+++ b/tests/spencer1-locale
@@ -18,6 +18,6 @@ ${AWK-awk} -v extra_locale=$LOCALE_FR_UTF8 \
-f "$abs_srcdir/spencer1-locale.awk" "$abs_srcdir/spencer1.tests" \
> spencer1-locale.script || fail=1
-${SHELL-sh} spencer1-locale.script || fail=1
+${re_shell_-${SHELL-sh}} spencer1-locale.script || fail=1
Exit $fail