From b366f53ec394e9886c60c851243af59952480a73 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Thu, 29 Dec 2016 15:05:34 -0600 Subject: getopt: fix parallel test failure I hit a testsuite failure due to a failure removing test-getopt.tmp, when running tests in parallel. * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name. * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise. * tests/test-getopt-main.h (main): Use different file names in case test-getopt-gnu and test-getopt-posix run in parallel. Signed-off-by: Eric Blake --- tests/test-getopt-posix.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/test-getopt-posix.c') diff --git a/tests/test-getopt-posix.c b/tests/test-getopt-posix.c index c89981fd1a..5532271f2b 100644 --- a/tests/test-getopt-posix.c +++ b/tests/test-getopt-posix.c @@ -30,4 +30,5 @@ #include #define TEST_GETOPT_GNU 0 +#define TEST_GETOPT_TMP_NAME "test-getopt-posix.tmp" #include "test-getopt-main.h" -- cgit v1.2.1