Source-Changes-HG archive

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

[src/trunk]: src/tests/dev/cgd Use proper cleanup.



details:   https://anonhg.NetBSD.org/src/rev/1ea2ce87dff6
branches:  trunk
changeset: 759736:1ea2ce87dff6
user:      pooka <pooka%NetBSD.org@localhost>
date:      Wed Dec 15 19:14:37 2010 +0000

description:
Use proper cleanup.

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

diffstat:

 tests/dev/cgd/t_cgd.sh |  12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diffs (40 lines):

diff -r 4aae5b52dacc -r 1ea2ce87dff6 tests/dev/cgd/t_cgd.sh
--- a/tests/dev/cgd/t_cgd.sh    Wed Dec 15 19:07:43 2010 +0000
+++ b/tests/dev/cgd/t_cgd.sh    Wed Dec 15 19:14:37 2010 +0000
@@ -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()
 {
 



Home | Main Index | Thread Index | Old Index