diff options
Diffstat (limited to 'tests/misc')
-rwxr-xr-x | tests/misc/stat-mount.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/misc/stat-mount.sh b/tests/misc/stat-mount.sh index 814d23ce5..ab1ff479b 100755 --- a/tests/misc/stat-mount.sh +++ b/tests/misc/stat-mount.sh @@ -19,8 +19,10 @@ . "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ stat -df_mnt=$(df -P . | sed -n '2s/.* \([^ ]*$\)/\1/p') stat_mnt=$(stat -c%m .) || fail=1 -test "$stat_mnt" || fail=1 +case "$stat_mnt" in + /*) ;; + *) fail=1;; +esac Exit $fail |