Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/librumpclient t_fd/sigio: pass test if we receive ...



details:   https://anonhg.NetBSD.org/src/rev/36ad2def6b01
branches:  trunk
changeset: 768738:36ad2def6b01
user:      hannken <hannken%NetBSD.org@localhost>
date:      Thu Aug 25 18:46:01 2011 +0000

description:
t_fd/sigio: pass test if we receive at least one SIGIO signal.

While a real kernel collects these signals until the connect() returns and
then delivers one signal rump delivers every signal so we get more than one.

Ok: Antti Kantee <pooka%netbsd.org@localhost>

diffstat:

 tests/lib/librumpclient/t_fd.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r e7b373e5e37c -r 36ad2def6b01 tests/lib/librumpclient/t_fd.c
--- a/tests/lib/librumpclient/t_fd.c    Thu Aug 25 18:20:22 2011 +0000
+++ b/tests/lib/librumpclient/t_fd.c    Thu Aug 25 18:46:01 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_fd.c,v 1.3 2011/08/15 15:19:08 gson Exp $    */
+/*     $NetBSD: t_fd.c,v 1.4 2011/08/25 18:46:01 hannken Exp $ */
 
 /*
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -134,7 +134,7 @@
        RL(rump_sys_connect(cs, (struct sockaddr *)&sin, sizeof(sin)));
        sc = sigcnt;
        printf("sigcnt after connect: %d\n", sc);
-       ATF_REQUIRE_EQ(sc, 1);
+       ATF_REQUIRE(sc >= 1);
 }
 
 ATF_TP_ADD_TCS(tp)



Home | Main Index | Thread Index | Old Index