Merging in 2.0.2.
This commit is contained in:
@@ -34,7 +34,6 @@ awk < $1 '
|
||||
printf "#include <stdlib.h>\n";
|
||||
printf "#include <errno.h>\n";
|
||||
printf "#include <err.h>\n";
|
||||
printf "#include <test161/test161.h>\n";
|
||||
printf "\n";
|
||||
printf "#include \"extern.h\"\n";
|
||||
printf "\n";
|
||||
@@ -68,7 +67,7 @@ awk < $1 '
|
||||
if (i<NF) printf ", ";
|
||||
}
|
||||
printf ");\n";
|
||||
printf"\ttprintf(\"%%-47s\", buf);\n";
|
||||
printf"\tprintf(\"%%-47s\", buf);\n";
|
||||
#printf "\tfflush(stdout);\n";
|
||||
printf "\n";
|
||||
|
||||
@@ -89,7 +88,7 @@ awk < $1 '
|
||||
}
|
||||
printf ");\n";
|
||||
|
||||
printf "\ttprintf(\" result %%d, errno %%d\\n\", result, errno);\n";
|
||||
printf "\tprintf(\" result %%d, errno %%d\\n\", result, errno);\n";
|
||||
printf "\tif (dofork) {\n";
|
||||
printf "\t\texit(0);\n";
|
||||
printf "\t}\n";
|
||||
@@ -135,11 +134,9 @@ awk < $1 '
|
||||
|
||||
printf "\tfor (i=0; i<count; i++) {\n";
|
||||
printf "\t\tfor (j=0; list[j]; j++) {\n";
|
||||
printf "\t\t\tnprintf(\".\");\n";
|
||||
printf "\t\t\t(*list[j])(dofork);\n";
|
||||
printf "\t\t}\n";
|
||||
printf "\t}\n";
|
||||
printf "nprintf(\"\\n\");\n";
|
||||
printf "}\n";
|
||||
printf "\n";
|
||||
}
|
||||
|
@@ -30,7 +30,6 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <test161/test161.h>
|
||||
|
||||
#include "extern.h"
|
||||
|
||||
@@ -114,10 +113,10 @@ static
|
||||
void
|
||||
usage(void)
|
||||
{
|
||||
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");
|
||||
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");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
@@ -158,11 +157,10 @@ main(int argc, char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
tprintf("Seed: %d Count: %d\n", seed, count);
|
||||
printf("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