Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/semaphore * remove pasto



details:   https://anonhg.NetBSD.org/src/rev/ca751f747da7
branches:  trunk
changeset: 755719:ca751f747da7
user:      pooka <pooka%NetBSD.org@localhost>
date:      Thu Jun 17 09:37:50 2010 +0000

description:
* remove pasto
* set short timeout for the blockwait test

diffstat:

 tests/lib/semaphore/sem.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 91267d9b82cf -r ca751f747da7 tests/lib/semaphore/sem.c
--- a/tests/lib/semaphore/sem.c Thu Jun 17 08:31:20 2010 +0000
+++ b/tests/lib/semaphore/sem.c Thu Jun 17 09:37:50 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sem.c,v 1.4 2010/06/16 15:39:41 pooka Exp $    */
+/*     $NetBSD: sem.c,v 1.5 2010/06/17 09:37:50 pooka Exp $    */
 
 /*
  * Common code for semaphore tests.  This can be included both into
@@ -167,6 +167,7 @@
 
        atf_tc_set_md_var(tc, "descr", "tests sem_wait can handle blocking "
            "(%s)", LIBNAME);
+       atf_tc_set_md_var(tc, "timeout", "2");
 }
 
 ATF_TC_BODY(blockwait, tc)
@@ -193,8 +194,6 @@
                sem_post(&semmarit[1]);
 
        }
-       if (i == 1000)
-               atf_tc_fail("sem destroy not reporting EBUSY");
 }
 
 ATF_TC(named);



Home | Main Index | Thread Index | Old Index