summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-03-18 16:53:58 +0000
committerJim Meyering <jim@meyering.net>2001-03-18 16:53:58 +0000
commit46c7196039b16c5373dd403409fc3f868e40093c (patch)
treeafe588ad696a4e12ccd45c3195f34871581085bd /tests
parentb73e91b1d44f3a6c20fa3e5efb270789ca3a7f68 (diff)
downloadcoreutils-46c7196039b16c5373dd403409fc3f868e40093c.tar.xz
If the $DJDIR envvar is defined, set SHELL
to $DJDIR/bin/bash.exe. Patch from Richard Dawe, based on a suggestion from Eli Zaretskii.
Diffstat (limited to 'tests')
-rw-r--r--tests/Fetish.pm8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/Fetish.pm b/tests/Fetish.pm
index 9c93947bf..4dffeec1f 100644
--- a/tests/Fetish.pm
+++ b/tests/Fetish.pm
@@ -12,7 +12,7 @@ use FileHandle;
use File::Compare qw(compare);
@ISA = qw(Exporter);
-($VERSION = '$Revision: 1.9 $ ') =~ tr/[0-9].//cd;
+($VERSION = '$Revision: 1.10 $ ') =~ tr/[0-9].//cd;
@EXPORT = qw (run_tests);
my $debug = $ENV{DEBUG};
@@ -23,6 +23,12 @@ my %Zero_one_type = map {$_ => 1} qw (OUT ERR EXIT PRE POST);
my $srcdir = $ENV{srcdir};
my $Global_count = 1;
+# When running in a DJGPP environment, make $ENV{SHELL} point to bash.
+# Otherwise, a bad shell might be used (e.g. command.com) and many
+# tests would fail.
+defined $ENV{DJDIR}
+ and $ENV{SHELL} = "$ENV{DJDIR}/bin/bash.exe";
+
# A file spec: a scalar or a reference to a single-keyed hash
# ================
# 'contents' contents only (file name is derived from test name)