svn commit: r317493 - user/pho/stress2/misc

Peter Holm pho at FreeBSD.org
Thu Apr 27 07:51:38 UTC 2017


Author: pho
Date: Thu Apr 27 07:51:37 2017
New Revision: 317493
URL: https://svnweb.freebsd.org/changeset/base/317493

Log:
  Fix broken pthread error reporting and extend timeout.
  
  Sponsored by:	Dell EMC Isilon

Modified:
  user/pho/stress2/misc/namecache2.sh

Modified: user/pho/stress2/misc/namecache2.sh
==============================================================================
--- user/pho/stress2/misc/namecache2.sh	Thu Apr 27 07:49:33 2017	(r317492)
+++ user/pho/stress2/misc/namecache2.sh	Thu Apr 27 07:51:37 2017	(r317493)
@@ -151,7 +151,7 @@ main(void)
 	}
 	result = pthread_create(&threadId, NULL, statThread, NULL);
 	if (result < 0)
-		err(1, "pthread_create(): %s\n", strerror(result));
+		errc(1, result, "pthread_create()");
 
 	start = time(NULL);
 	for (number = 0; number < 0x001FFFFF; number += 2) {
@@ -183,7 +183,7 @@ main(void)
 			nanosleep(&period, 0);
 			return 0;
 		}
-		if (time(NULL) - start > 600) {
+		if (time(NULL) - start > 1800) {
 			fprintf(stderr, "Test timed out.\n");
 			break;
 		}


More information about the svn-src-user mailing list