lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1857 - nss-pam-ldapd/tests

[Date Prev][Date Next] [Thread Prev][Thread Next]

nss-pam-ldapd commit: r1857 - nss-pam-ldapd/tests



Author: arthur
Date: Fri Dec 14 15:45:17 2012
New Revision: 1857
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=1857&view=revision

Log:
also output debugging info in test_timeout_reader test

Modified:
   nss-pam-ldapd/tests/test_tio.c

Modified: nss-pam-ldapd/tests/test_tio.c
==============================================================================
--- nss-pam-ldapd/tests/test_tio.c      Sun Dec  9 21:11:41 2012        (r1856)
+++ nss-pam-ldapd/tests/test_tio.c      Fri Dec 14 15:45:17 2012        (r1857)
@@ -278,10 +278,14 @@
   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);
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/