Thu Aug 25 18:46:01 2011 UTC ()
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>


(hannken)
diff -r1.3 -r1.4 src/tests/lib/librumpclient/t_fd.c

cvs diff -r1.3 -r1.4 src/tests/lib/librumpclient/t_fd.c (expand / switch to context diff)
--- src/tests/lib/librumpclient/t_fd.c 2011/08/15 15:19:08 1.3
+++ src/tests/lib/librumpclient/t_fd.c 2011/08/25 18:46:01 1.4
@@ -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)