summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtests/deep-directories2
-rw-r--r--tests/no-mode-change-git-diff4
-rw-r--r--tests/read-only-files2
3 files changed, 4 insertions, 4 deletions
diff --git a/tests/deep-directories b/tests/deep-directories
index d6a41a6..4698842 100755
--- a/tests/deep-directories
+++ b/tests/deep-directories
@@ -14,7 +14,7 @@ use_tmpdir
# Exercise the directory file descriptor cache
# Artificially limit to 8 cache entries
-ulimit -n 32 >& /dev/null || exit 77
+ulimit -n 32 > /dev/null 2>&1 || exit 77
cat > ab.diff <<EOF
--- /dev/null
diff --git a/tests/no-mode-change-git-diff b/tests/no-mode-change-git-diff
index 2f9bc36..b8f33c1 100644
--- a/tests/no-mode-change-git-diff
+++ b/tests/no-mode-change-git-diff
@@ -29,6 +29,6 @@ check 'patch -p1 < simple.diff || echo "Status: $?"' <<EOF
patching file f
EOF
-check 'stat -c "%a" f'<<EOF
-755
+check 'ls -l f | sed "s,\(..........\).*,\1,"' <<EOF
+-rwxr-xr-x
EOF
diff --git a/tests/read-only-files b/tests/read-only-files
index bcc11a4..febaeb8 100644
--- a/tests/read-only-files
+++ b/tests/read-only-files
@@ -16,7 +16,7 @@ use_tmpdir
: > read-only
chmod a-w read-only
-if : 2> /dev/null > read-only; then
+if ( : 2> /dev/null > read-only ); then
echo "Files with read-only permissions are writable" \
"(probably running as superuser)" >&2
exit 77