Module Name:    src
Committed By:   gson
Date:           Mon Aug 15 15:19:09 UTC 2011

Modified Files:
        src/tests/lib/librumpclient: t_fd.c

Log Message:
As the sigio test case is currently failing with "sigcnt != 1", print the
actual sigcnt value to aid in diagnosing the problem.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/lib/librumpclient/t_fd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/lib/librumpclient/t_fd.c
diff -u src/tests/lib/librumpclient/t_fd.c:1.2 src/tests/lib/librumpclient/t_fd.c:1.3
--- src/tests/lib/librumpclient/t_fd.c:1.2	Sun Feb 20 13:27:46 2011
+++ src/tests/lib/librumpclient/t_fd.c	Mon Aug 15 15:19:08 2011
@@ -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)

Reply via email to