Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/kernel Fix silly test. First it tests that it can't "...



details:   https://anonhg.NetBSD.org/src/rev/c0d7b0f7e0fe
branches:  trunk
changeset: 755614:c0d7b0f7e0fe
user:      pooka <pooka%NetBSD.org@localhost>
date:      Sat Jun 12 13:31:35 2010 +0000

description:
Fix silly test.  First it tests that it can't "cd ..", then it
wants to "cd .." to complete the test.  CANNOT HAVE BOTH!

diffstat:

 tests/kernel/t_umount.sh |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 174ed7ad569a -r c0d7b0f7e0fe tests/kernel/t_umount.sh
--- a/tests/kernel/t_umount.sh  Sat Jun 12 13:15:54 2010 +0000
+++ b/tests/kernel/t_umount.sh  Sat Jun 12 13:31:35 2010 +0000
@@ -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!"



Home | Main Index | Thread Index | Old Index