From 69b4e982c8c102686c184f181c33eaedf31b180d Mon Sep 17 00:00:00 2001 From: toddouska Date: Sun, 29 Mar 2015 19:32:48 -0700 Subject: [PATCH] fix tmp output files lingering around, remove() was called in bad spot --- testsuite/testsuite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuite/testsuite.c b/testsuite/testsuite.c index 2ea27adf1..4146878de 100644 --- a/testsuite/testsuite.c +++ b/testsuite/testsuite.c @@ -152,7 +152,6 @@ int testsuite_test(int argc, char** argv) strcpy(echo_args.argv[0], "echoclient"); strcpy(echo_args.argv[1], "input"); strcpy(echo_args.argv[2], outputName); - remove(outputName); /* Share the signal, it has the new port number in it. */ echo_args.signal = server_args.signal; @@ -189,6 +188,7 @@ int testsuite_test(int argc, char** argv) file_test("input", input); file_test(outputName, output); + remove(outputName); if (memcmp(input, output, sizeof(input)) != 0) return EXIT_FAILURE; }