svn commit: r357723 - user/pho/stress2/misc
Peter Holm
pho at FreeBSD.org
Mon Feb 10 09:01:55 UTC 2020
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;
}
More information about the svn-src-user
mailing list