Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Apr 2017 07:51:37 +0000 (UTC)
From:      Peter Holm <pho@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r317493 - user/pho/stress2/misc
Message-ID:  <201704270751.v3R7pbc3037638@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 		}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704270751.v3R7pbc3037638>