Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2012-12-14 15:45:17 +0100
committerArthur de Jong <arthur@arthurdejong.org>2012-12-14 15:45:17 +0100
commit83927b70417aa55ef4a099e30491f619a1c507ca (patch)
tree085936cc16781ae633332b2911f93ff171d50a3b /tests
parent2fd5119c7d9e33d961e6cfac7f4d9670711424cb (diff)
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
Diffstat (limited to 'tests')
-rw-r--r--tests/test_tio.c4
1 files changed, 4 insertions, 0 deletions
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);