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>
This commit is contained in:
hannken 2011-08-25 18:46:01 +00:00
parent d24dcc0dc7
commit 92eca745a6
1 changed files with 2 additions and 2 deletions

View File

@ -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 @@ ATF_TC_BODY(sigio, tc)
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)