Source-Changes-HG archive

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

[src/trunk]: src/tests/net/bpfilter There's a known-but-unresolved race condi...



details:   https://anonhg.NetBSD.org/src/rev/f4205fb497a5
branches:  trunk
changeset: 781293:f4205fb497a5
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Fri Aug 31 04:02:21 2012 +0000

description:
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.

diffstat:

 tests/net/bpfilter/t_bpfilter.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 3644471f1fd5 -r f4205fb497a5 tests/net/bpfilter/t_bpfilter.c
--- a/tests/net/bpfilter/t_bpfilter.c   Fri Aug 31 02:59:37 2012 +0000
+++ b/tests/net/bpfilter/t_bpfilter.c   Fri Aug 31 04:02:21 2012 +0000
@@ -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_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_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)



Home | Main Index | Thread Index | Old Index