@@ -30,6 +30,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <test161/test161.h>
|
||||
|
||||
#include "extern.h"
|
||||
|
||||
@@ -113,10 +114,10 @@ static
|
||||
void
|
||||
usage(void)
|
||||
{
|
||||
printf("Usage: randcall [-f] [-c count] [-r seed] 2|3|4|all\n");
|
||||
printf(" -f suppress forking\n");
|
||||
printf(" -c set iteration count (default 100)\n");
|
||||
printf(" -r set pseudorandom seed (default 0)\n");
|
||||
tprintf("Usage: randcall [-f] [-c count] [-r seed] 2|3|4|all\n");
|
||||
tprintf(" -f suppress forking\n");
|
||||
tprintf(" -c set iteration count (default 100)\n");
|
||||
tprintf(" -r set pseudorandom seed (default 0)\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
@@ -157,10 +158,11 @@ main(int argc, char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
printf("Seed: %d Count: %d\n", seed, count);
|
||||
tprintf("Seed: %d Count: %d\n", seed, count);
|
||||
|
||||
srandom(seed);
|
||||
trycalls(an, dofork, count);
|
||||
|
||||
success(TEST161_SUCCESS, SECRET, "/testbin/randcall");
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user