From 83927b70417aa55ef4a099e30491f619a1c507ca Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Fri, 14 Dec 2012 14:45:17 +0000 Subject: also output debugging info in test_timeout_reader test git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1857 ef36b2f9-881f-0410-afb5-c4e39611909c --- tests/test_tio.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/test_tio.c b/tests/test_tio.c index 68b549a..c21fa39 100644 --- a/tests/test_tio.c +++ b/tests/test_tio.c @@ -278,10 +278,14 @@ static void test_timeout_reader(void) assertok((wfp=fdopen(sp[0],"wb"))!=NULL); /* open the reader */ assertok((rfp=tio_fdopen(sp[1],1100,1100,2*1024,4*1024,2*1024,4*1024))!=NULL); + printf("test_tio: test_timeout_reader: trying to read a block of %d bytes\n", + (int)sizeof(buf)); /* perform a read */ start=time(NULL); assertok(tio_read(rfp,buf,sizeof(buf))!=0); end=time(NULL); + printf("test_tio: test_timeout_reader: read 0 blocks of %d bytes in %d second(s) (%s)\n", + (int)sizeof(buf),(int)(end-start),strerror(errno)); assert(end>start); /* close the files */ assertok(tio_close(rfp)==0); -- cgit v1.2.3