X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Tools%2FNetTest_Runner%2Fstack.c;h=07f8be7a58aea02e76126416d6aa9a2983dcca52;hb=13078002b01ee4f63eb2001d2ef479a2a006ea32;hp=1a224e85ab6a912ce541304bc37a726cd0b8e328;hpb=01401dc92068f781e6af6c601be7deba954b3444;p=tpg%2Facess2.git diff --git a/Tools/NetTest_Runner/stack.c b/Tools/NetTest_Runner/stack.c index 1a224e85..07f8be7a 100644 --- a/Tools/NetTest_Runner/stack.c +++ b/Tools/NetTest_Runner/stack.c @@ -12,6 +12,8 @@ #include #include +#include +#include #define MAX_ARGS 16 @@ -92,7 +94,7 @@ void sigchld_handler(int signum) fprintf(stderr, "FAILURE: Child exited (%i)\n", status); } -int Stack_Start(const char *Subcommand) +int Stack_Start(const char *RunName, const char *Subcommand) { Stack_AddArg(Subcommand); @@ -107,8 +109,8 @@ int Stack_Start(const char *Subcommand) fcntl(giStack_InFD, F_SETFD, FD_CLOEXEC); FILE *fp; - fp = fopen("stdout.txt", "a"); fprintf(fp, "--- Startup\n"); fclose(fp); - fp = fopen("stderr.txt", "a"); fprintf(fp, "--- Startup\n"); fclose(fp); + fp = fopen("stdout.txt", "a"); fprintf(fp, "--- TEST: %s\n", RunName); fclose(fp); + fp = fopen("stderr.txt", "a"); fprintf(fp, "--- TEST: %s\n", RunName); fclose(fp); posix_spawn_file_actions_t fa; posix_spawn_file_actions_init(&fa);