summaryrefslogtreecommitdiff
path: root/tests/test-getopt-posix.c
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2016-12-29 15:05:34 -0600
committerEric Blake <eblake@redhat.com>2016-12-29 15:06:09 -0600
commitb366f53ec394e9886c60c851243af59952480a73 (patch)
tree519af6a60cb7fa16f3b6bb78a6be006f93d445c0 /tests/test-getopt-posix.c
parent8e63aebd5d3e398a986dcc5cfaaa5409bca30d12 (diff)
downloadgnulib-b366f53ec394e9886c60c851243af59952480a73.tar.gz
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 <eblake@redhat.com>
Diffstat (limited to 'tests/test-getopt-posix.c')
-rw-r--r--tests/test-getopt-posix.c1
1 files changed, 1 insertions, 0 deletions
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 <unistd.h>
#define TEST_GETOPT_GNU 0
+#define TEST_GETOPT_TMP_NAME "test-getopt-posix.tmp"
#include "test-getopt-main.h"