Module Name: src
Committed By: pgoyette
Date: Fri Aug 31 04:02:21 UTC 2012
Modified Files:
src/tests/net/bpfilter: t_bpfilter.c
Log Message:
There's a known-but-unresolved race condition in here somewhere that
causes these tests to sometimes deadlock. Since they run really fast
when they are successful, it doesn't do any good to wait for the
default 5-minute timeout. So explicitly set timeout for these tests
to just 30 seconds.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/net/bpfilter/t_bpfilter.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/net/bpfilter/t_bpfilter.c
diff -u src/tests/net/bpfilter/t_bpfilter.c:1.4 src/tests/net/bpfilter/t_bpfilter.c:1.5
--- src/tests/net/bpfilter/t_bpfilter.c:1.4 Thu Aug 16 20:16:06 2012
+++ src/tests/net/bpfilter/t_bpfilter.c Fri Aug 31 04:02:21 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: t_bpfilter.c,v 1.4 2012/08/16 20:16:06 alnsn Exp $ */
+/* $NetBSD: t_bpfilter.c,v 1.5 2012/08/31 04:02:21 pgoyette Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -25,7 +25,7 @@
* SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_bpfilter.c,v 1.4 2012/08/16 20:16:06 alnsn Exp $");
+__RCSID("$NetBSD: t_bpfilter.c,v 1.5 2012/08/31 04:02:21 pgoyette Exp $");
#include <sys/param.h>
#include <sys/ioctl.h>
@@ -276,6 +276,7 @@ ATF_TC_HEAD(bpfiltercontig, tc)
atf_tc_set_md_var(tc, "descr", "Checks that bpf program "
"can read bytes from contiguous buffer.");
+ atf_tc_set_md_var(tc, "timeout", "30");
}
ATF_TC_BODY(bpfiltercontig, tc)
@@ -291,6 +292,7 @@ ATF_TC_HEAD(bpfiltermchain, tc)
atf_tc_set_md_var(tc, "descr", "Checks that bpf program "
"can read bytes from mbuf chain.");
+ atf_tc_set_md_var(tc, "timeout", "30");
}
ATF_TC_BODY(bpfiltermchain, tc)