Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/librumpclient As the sigio test case is currently ...
details: https://anonhg.NetBSD.org/src/rev/e716b86095f4
branches: trunk
changeset: 768367:e716b86095f4
user: gson <gson%NetBSD.org@localhost>
date: Mon Aug 15 15:19:08 2011 +0000
description:
As the sigio test case is currently failing with "sigcnt != 1", print the
actual sigcnt value to aid in diagnosing the problem.
diffstat:
tests/lib/librumpclient/t_fd.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 6b63a67953ac -r e716b86095f4 tests/lib/librumpclient/t_fd.c
--- a/tests/lib/librumpclient/t_fd.c Mon Aug 15 15:13:59 2011 +0000
+++ b/tests/lib/librumpclient/t_fd.c Mon Aug 15 15:19:08 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_fd.c,v 1.2 2011/02/20 13:27:46 pooka Exp $ */
+/* $NetBSD: t_fd.c,v 1.3 2011/08/15 15:19:08 gson Exp $ */
/*
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -106,6 +106,7 @@
int ls;
int cs;
int fl;
+ int sc;
signal(SIGIO, gotsig);
RZ(system("rump_server -lrumpnet -lrumpnet_net -lrumpnet_netinet "
@@ -131,7 +132,9 @@
ATF_REQUIRE_EQ(sigcnt, 0);
RL(rump_sys_connect(cs, (struct sockaddr *)&sin, sizeof(sin)));
- ATF_REQUIRE_EQ(sigcnt, 1);
+ sc = sigcnt;
+ printf("sigcnt after connect: %d\n", sc);
+ ATF_REQUIRE_EQ(sc, 1);
}
ATF_TP_ADD_TCS(tp)
Home |
Main Index |
Thread Index |
Old Index