Module Name: src
Committed By: pooka
Date: Sat Jun 12 13:31:36 UTC 2010
Modified Files:
src/tests/kernel: t_umount.sh
Log Message:
Fix silly test. First it tests that it can't "cd ..", then it
wants to "cd .." to complete the test. CANNOT HAVE BOTH!
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/kernel/t_umount.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/kernel/t_umount.sh
diff -u src/tests/kernel/t_umount.sh:1.2 src/tests/kernel/t_umount.sh:1.3
--- src/tests/kernel/t_umount.sh:1.2 Fri Jun 4 08:39:40 2010
+++ src/tests/kernel/t_umount.sh Sat Jun 12 13:31:35 2010
@@ -1,4 +1,4 @@
-# $NetBSD: t_umount.sh,v 1.2 2010/06/04 08:39:40 jmmv Exp $
+# $NetBSD: t_umount.sh,v 1.3 2010/06/12 13:31:35 pooka Exp $
#
# Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -66,6 +66,7 @@
test -e "${TMPMP}/in_mounted_directory" || \
atf_fail "Test file not present in mounted directory!"
+ mydir="`pwd`"
cd "${TMPMP}"
atf_check -o ignore -e ignore umount -f "${BVND}${MPART}"
@@ -77,7 +78,7 @@
atf_check -s ne:0 -e ignore -o inline:"cd: can't cd to ..\n" \
-x "cd .. 2>&1"
- cd ..
+ cd "${mydir}"
test -e "${TMPMP}/under_the_mount" || \
atf_fail "Original mount point dissapeared!"