Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
6cc5e3cd
Commit
6cc5e3cd
authored
Feb 08, 2019
by
Poul-Henning Kamp
Committed by
Dridi Boukelmoune
Oct 18, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Consume less random bits, and don't pace after ramp-up
parent
e464a940
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
vtc_main.c
bin/varnishtest/vtc_main.c
+3
-2
No files found.
bin/varnishtest/vtc_main.c
View file @
6cc5e3cd
...
...
@@ -277,7 +277,6 @@ start_test(void)
assert
(
jp
->
buf
!=
MAP_FAILED
);
memset
(
jp
->
buf
,
0
,
jp
->
bufsiz
);
VRND_SeedAll
();
bprintf
(
tmpdir
,
"%s/vtc.%d.%08x"
,
tmppath
,
(
int
)
getpid
(),
(
unsigned
)
random
());
AZ
(
mkdir
(
tmpdir
,
0711
));
...
...
@@ -538,6 +537,7 @@ main(int argc, char * const *argv)
{
int
ch
,
i
;
int
ntest
=
1
;
/* Run tests this many times */
int
nstart
=
0
;
uintmax_t
bufsiz
;
const
char
*
p
;
char
buf
[
PATH_MAX
];
...
...
@@ -566,6 +566,7 @@ main(int argc, char * const *argv)
if
(
p
!=
NULL
)
vtc_maxdur
=
atoi
(
p
);
VRND_SeedAll
();
setbuf
(
stdout
,
NULL
);
setbuf
(
stderr
,
NULL
);
while
((
ch
=
getopt
(
argc
,
argv
,
"b:D:hij:kLln:p:qt:vW"
))
!=
-
1
)
{
...
...
@@ -658,7 +659,7 @@ main(int argc, char * const *argv)
start_test
();
njob
++
;
/* Stagger ramp-up */
if
(
n
job
<
npar
)
if
(
n
start
++
<
npar
)
(
void
)
usleep
(
random
()
%
100000L
);
i
=
1
;
continue
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment