Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Feb 2020 09:01:55 +0000 (UTC)
From:      Peter Holm <pho@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r357723 - user/pho/stress2/misc
Message-ID:  <202002100901.01A91tcj064005@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pho
Date: Mon Feb 10 09:01:54 2020
New Revision: 357723
URL: https://svnweb.freebsd.org/changeset/base/357723

Log:
  Cap run time. Fix parameter type for getdirentries().

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

Modified: user/pho/stress2/misc/namecache.sh
==============================================================================
--- user/pho/stress2/misc/namecache.sh	Mon Feb 10 08:56:29 2020	(r357722)
+++ user/pho/stress2/misc/namecache.sh	Mon Feb 10 09:01:54 2020	(r357723)
@@ -83,7 +83,7 @@ for i in `jot 30`; do
 	for j in `jot 10`; do
 		wait
 	done
-	[ $((`date '+%s'` - start)) -gt 1800 ] && break
+	[ $((`date '+%s'` - start)) -gt 1200 ] && break
 done
 
 if ls -l $dir/file.0* 2>&1 | egrep "file.0[0-9]" | grep -q "No such file"; then
@@ -122,7 +122,7 @@ pm(void)
 	int fd, n;
 	int space = sizeof(buf);
 	struct stat statb;
-	long base;
+	off_t base;
 	struct dirent *dp;
 	char *bp = buf;
 

Modified: user/pho/stress2/misc/namecache2.sh
==============================================================================
--- user/pho/stress2/misc/namecache2.sh	Mon Feb 10 08:56:29 2020	(r357722)
+++ user/pho/stress2/misc/namecache2.sh	Mon Feb 10 09:01:54 2020	(r357723)
@@ -183,7 +183,7 @@ main(void)
 			nanosleep(&period, 0);
 			return 0;
 		}
-		if (time(NULL) - start > 1800) {
+		if (time(NULL) - start > 1200) {
 			fprintf(stderr, "Test timed out.\n");
 			break;
 		}



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