Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/librumphijack test case for runon prefixes



details:   https://anonhg.NetBSD.org/src/rev/9e1e80c120ad
branches:  trunk
changeset: 763040:9e1e80c120ad
user:      pooka <pooka%NetBSD.org@localhost>
date:      Tue Mar 08 21:36:25 2011 +0000

description:
test case for runon prefixes

diffstat:

 tests/lib/librumphijack/t_vfs.sh |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (37 lines):

diff -r 34efa7b62e87 -r 9e1e80c120ad tests/lib/librumphijack/t_vfs.sh
--- a/tests/lib/librumphijack/t_vfs.sh  Tue Mar 08 21:36:01 2011 +0000
+++ b/tests/lib/librumphijack/t_vfs.sh  Tue Mar 08 21:36:25 2011 +0000
@@ -1,4 +1,4 @@
-#       $NetBSD: t_vfs.sh,v 1.2 2011/02/23 16:38:08 pooka Exp $
+#       $NetBSD: t_vfs.sh,v 1.3 2011/03/08 21:36:25 pooka Exp $
 #
 # Copyright (c) 2011 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -136,6 +136,7 @@
 }
 
 simpletest mv_x
+simpletest runonprefix
 
 #
 # do a cross-kernel mv
@@ -149,6 +150,13 @@
        atf_check -s exit:0 diff -ru ${thedir}.2 /rump/${thedir}
 }
 
+runonprefix()
+{
+
+       atf_check -s exit:0 -o ignore stat /rump/dev
+       atf_check -s exit:1 -e ignore stat /rumpdev
+}
+
 atf_init_test_cases()
 {
 
@@ -156,4 +164,5 @@
        atf_add_test_case cpcopy
        atf_add_test_case mv_x
        atf_add_test_case mv_nox
+       atf_add_test_case runonprefix
 }



Home | Main Index | Thread Index | Old Index