Mon Aug 10 09:31:13 2015 UTC ()
Fix cleanup


(ozaki-r)
diff -r1.1 -r1.2 src/tests/net/ndp/t_dad.sh

cvs diff -r1.1 -r1.2 src/tests/net/ndp/t_dad.sh (expand / switch to unified diff)

--- src/tests/net/ndp/t_dad.sh 2015/08/03 09:54:20 1.1
+++ src/tests/net/ndp/t_dad.sh 2015/08/10 09:31:13 1.2
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: t_dad.sh,v 1.1 2015/08/03 09:54:20 ozaki-r Exp $ 1# $NetBSD: t_dad.sh,v 1.2 2015/08/10 09:31:13 ozaki-r Exp $
2# 2#
3# Copyright (c) 2015 The NetBSD Foundation, Inc. 3# Copyright (c) 2015 The NetBSD Foundation, Inc.
4# All rights reserved. 4# All rights reserved.
5# 5#
6# Redistribution and use in source and binary forms, with or without 6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions 7# modification, are permitted provided that the following conditions
8# are met: 8# are met:
9# 1. Redistributions of source code must retain the above copyright 9# 1. Redistributions of source code must retain the above copyright
10# notice, this list of conditions and the following disclaimer. 10# notice, this list of conditions and the following disclaimer.
11# 2. Redistributions in binary form must reproduce the above copyright 11# 2. Redistributions in binary form must reproduce the above copyright
12# notice, this list of conditions and the following disclaimer in the 12# notice, this list of conditions and the following disclaimer in the
13# documentation and/or other materials provided with the distribution. 13# documentation and/or other materials provided with the distribution.
14# 14#
@@ -207,21 +207,21 @@ dump() @@ -207,21 +207,21 @@ dump()
207 shmif_dumpbus -p - bus1 2>/dev/null| tcpdump -n -e -r - 207 shmif_dumpbus -p - bus1 2>/dev/null| tcpdump -n -e -r -
208} 208}
209 209
210dad_basic_cleanup() 210dad_basic_cleanup()
211{ 211{
212 $DEBUG && dump_local 212 $DEBUG && dump_local
213 $DEBUG && shmif_dumpbus -p - bus1 2>/dev/null| tcpdump -n -e -r - 213 $DEBUG && shmif_dumpbus -p - bus1 2>/dev/null| tcpdump -n -e -r -
214 env RUMP_SERVER=$SOCKLOCAL rump.halt 214 env RUMP_SERVER=$SOCKLOCAL rump.halt
215} 215}
216 216
217dad_duplicated_cleanup() 217dad_duplicated_cleanup()
218{ 218{
219 $DEBUG && dump 219 $DEBUG && dump
220 env RUMP_SERVER=$SOCKLOCAL rump.halt 220 cleanup
221} 221}
222 222
223atf_init_test_cases() 223atf_init_test_cases()
224{ 224{
225 atf_add_test_case dad_basic 225 atf_add_test_case dad_basic
226 atf_add_test_case dad_duplicated 226 atf_add_test_case dad_duplicated
227} 227}