Module Name: src
Committed By: pooka
Date: Thu Mar 31 12:56:04 UTC 2011
Modified Files:
src/tests/fs/psshfs: t_psshfs.sh
Log Message:
Make sure test doesn't pass if file system could not be read at all.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/fs/psshfs/t_psshfs.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/fs/psshfs/t_psshfs.sh
diff -u src/tests/fs/psshfs/t_psshfs.sh:1.4 src/tests/fs/psshfs/t_psshfs.sh:1.5
--- src/tests/fs/psshfs/t_psshfs.sh:1.4 Fri Feb 11 13:19:46 2011
+++ src/tests/fs/psshfs/t_psshfs.sh Thu Mar 31 12:56:03 2011
@@ -1,4 +1,4 @@
-# $NetBSD: t_psshfs.sh,v 1.4 2011/02/11 13:19:46 pooka Exp $
+# $NetBSD: t_psshfs.sh,v 1.5 2011/03/31 12:56:03 pooka Exp $
#
# Copyright (c) 2007, 2008 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -150,7 +150,10 @@
# Compares the inodes of the two given files and returns true if they are
# different; false otherwise.
#
-test \$(stat -f %i \${1}) -ne \$(stat -f %i \${2})
+set -e
+ino1=\$(stat -f %i \${1})
+ino2=\$(stat -f %i \${2})
+test \${ino1} -ne \${ino2}
EOF
chmod +x ne_inodes.sh