Module Name:    src
Committed By:   pooka
Date:           Wed Dec 15 19:14:37 UTC 2010

Modified Files:
        src/tests/dev/cgd: t_cgd.sh

Log Message:
Use proper cleanup.

XXX: the atf sh "compiler" should check for errors.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/dev/cgd/t_cgd.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/dev/cgd/t_cgd.sh
diff -u src/tests/dev/cgd/t_cgd.sh:1.2 src/tests/dev/cgd/t_cgd.sh:1.3
--- src/tests/dev/cgd/t_cgd.sh:1.2	Tue Dec 14 17:48:31 2010
+++ src/tests/dev/cgd/t_cgd.sh	Wed Dec 15 19:14:37 2010
@@ -1,4 +1,4 @@
-#	$NetBSD: t_cgd.sh,v 1.2 2010/12/14 17:48:31 pooka Exp $
+#	$NetBSD: t_cgd.sh,v 1.3 2010/12/15 19:14:37 pooka Exp $
 #
 # Copyright (c) 2010 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -25,7 +25,7 @@
 # POSSIBILITY OF SUCH DAMAGE.
 #
 
-atf_test_case basic
+atf_test_case basic cleanup
 basic_head()
 {
 
@@ -54,7 +54,7 @@
 	env RUMP_SERVER=unix://csock rump.halt
 }
 
-atf_test_case wrongpass
+atf_test_case wrongpass cleanup
 wrongpass_head()
 {
 
@@ -84,6 +84,12 @@
 	    dd rif=/dev/rcgd0d count=2
 }
 
+wrongpass_cleanup()
+{
+
+	env RUMP_SERVER=unix://csock rump.halt
+}
+
 atf_init_test_cases()
 {
 

Reply via email to