summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2022-09-14 15:12:18 +0200
committerBruno Haible <bruno@clisp.org>2022-09-14 15:12:18 +0200
commit167619228fc54207fb7631b4b07e5cdc446c7eb6 (patch)
treeac9bcaf2d5f04b00ea57b1eb1a7dd29b3328b173 /tests
parent7ea156f06cea2b6e225754c475f17035a38de5b2 (diff)
downloadgnulib-167619228fc54207fb7631b4b07e5cdc446c7eb6.tar.gz
posix_spawn-* tests: Fix test failure on mingw when libtool is in use.
* tests/test-posix_spawn-inherit0.c (CHILD_PROGRAM_FILENAME): Add the EXEEXT suffix. * tests/test-posix_spawn-inherit1.c (CHILD_PROGRAM_FILENAME): Likewise. * tests/test-posix_spawn-open1.c (CHILD_PROGRAM_FILENAME): Likewise. * tests/test-posix_spawn-open2.c (CHILD_PROGRAM_FILENAME): Likewise.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-posix_spawn-inherit0.c2
-rw-r--r--tests/test-posix_spawn-inherit1.c2
-rw-r--r--tests/test-posix_spawn-open1.c2
-rw-r--r--tests/test-posix_spawn-open2.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/tests/test-posix_spawn-inherit0.c b/tests/test-posix_spawn-inherit0.c
index 4995ab7462..4e479233d9 100644
--- a/tests/test-posix_spawn-inherit0.c
+++ b/tests/test-posix_spawn-inherit0.c
@@ -31,7 +31,7 @@
#include <sys/types.h>
#include <sys/wait.h>
-#define CHILD_PROGRAM_FILENAME "test-posix_spawn-inherit0"
+#define CHILD_PROGRAM_FILENAME "test-posix_spawn-inherit0" EXEEXT
#define DATA_FILENAME "test-posix_spawn-inh0-data.tmp"
static int
diff --git a/tests/test-posix_spawn-inherit1.c b/tests/test-posix_spawn-inherit1.c
index 2e72a1a5a0..3308e30375 100644
--- a/tests/test-posix_spawn-inherit1.c
+++ b/tests/test-posix_spawn-inherit1.c
@@ -31,7 +31,7 @@
#include <sys/types.h>
#include <sys/wait.h>
-#define CHILD_PROGRAM_FILENAME "test-posix_spawn-inherit1"
+#define CHILD_PROGRAM_FILENAME "test-posix_spawn-inherit1" EXEEXT
#define DATA_FILENAME "test-posix_spawn-inh1-data.tmp"
static int
diff --git a/tests/test-posix_spawn-open1.c b/tests/test-posix_spawn-open1.c
index df4eb8917f..21e3cb4c05 100644
--- a/tests/test-posix_spawn-open1.c
+++ b/tests/test-posix_spawn-open1.c
@@ -37,7 +37,7 @@ SIGNATURE_CHECK (posix_spawn, int, (pid_t *, char const *,
#include <sys/types.h>
#include <sys/wait.h>
-#define CHILD_PROGRAM_FILENAME "test-posix_spawn-open1"
+#define CHILD_PROGRAM_FILENAME "test-posix_spawn-open1" EXEEXT
#define DATA_FILENAME "t!#$%&'()*+,-;=?@[\\]^_`{|}~.tmp"
/* On Windows (including Cygwin), '*' '?' '\\' '|' cannot be used in file
names. */
diff --git a/tests/test-posix_spawn-open2.c b/tests/test-posix_spawn-open2.c
index 127d7a0b37..49ea5ed957 100644
--- a/tests/test-posix_spawn-open2.c
+++ b/tests/test-posix_spawn-open2.c
@@ -31,7 +31,7 @@
#include <sys/types.h>
#include <sys/wait.h>
-#define CHILD_PROGRAM_FILENAME "test-posix_spawn-open2"
+#define CHILD_PROGRAM_FILENAME "test-posix_spawn-open2" EXEEXT
#define DATA_FILENAME "test-posix_spawn-open2-data.tmp"
static int