From 7c56fe0c0df123fc38db32442c41ad475cfac913 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 17 Dec 2020 02:38:08 +0100 Subject: [PATCH] posix_spawnp-tests: Rename test. * tests/test-posix_spawn-dup2-stdout.c: Renamed from tests/test-posix_spawn1.c. * tests/test-posix_spawn-dup2-stdout.in.sh: Renamed from tests/test-posix_spawn1.in.sh. * modules/posix_spawnp-tests (Files, Makefile.am): Update. --- ChangeLog | 9 +++++++++ modules/posix_spawnp-tests | 16 ++++++++-------- ...x_spawn1.c => test-posix_spawn-dup2-stdout.c} | 2 +- ....in.sh => test-posix_spawn-dup2-stdout.in.sh} | 0 4 files changed, 18 insertions(+), 9 deletions(-) rename tests/{test-posix_spawn1.c => test-posix_spawn-dup2-stdout.c} (98%) rename tests/{test-posix_spawn1.in.sh => test-posix_spawn-dup2-stdout.in.sh} (100%) diff --git a/ChangeLog b/ChangeLog index 1a8e1a1c49..e80c3f12a2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2020-12-16 Bruno Haible + + posix_spawnp-tests: Rename test. + * tests/test-posix_spawn-dup2-stdout.c: Renamed from + tests/test-posix_spawn1.c. + * tests/test-posix_spawn-dup2-stdout.in.sh: Renamed from + tests/test-posix_spawn1.in.sh. + * modules/posix_spawnp-tests (Files, Makefile.am): Update. + 2020-12-14 Bruno Haible findprog-in: Allow overriding the current directory. diff --git a/modules/posix_spawnp-tests b/modules/posix_spawnp-tests index 743c95f0ee..14bbcda36a 100644 --- a/modules/posix_spawnp-tests +++ b/modules/posix_spawnp-tests @@ -1,6 +1,6 @@ Files: -tests/test-posix_spawn1.c -tests/test-posix_spawn1.in.sh +tests/test-posix_spawn-dup2-stdout.c +tests/test-posix_spawn-dup2-stdout.in.sh tests/test-posix_spawn2.c tests/test-posix_spawn2.in.sh tests/signature.h @@ -35,15 +35,15 @@ AM_CONDITIONAL([POSIX_SPAWN_PORTED], [test $posix_spawn_ported = yes]) Makefile.am: if POSIX_SPAWN_PORTED -TESTS += test-posix_spawn1 test-posix_spawn2 -check_PROGRAMS += test-posix_spawn1 test-posix_spawn2 +TESTS += test-posix_spawn-dup2-stdout test-posix_spawn2 +check_PROGRAMS += test-posix_spawn-dup2-stdout test-posix_spawn2 -BUILT_SOURCES += test-posix_spawn1.sh -test-posix_spawn1.sh: test-posix_spawn1.in.sh +BUILT_SOURCES += test-posix_spawn-dup2-stdout.sh +test-posix_spawn-dup2-stdout.sh: test-posix_spawn-dup2-stdout.in.sh $(AM_V_GEN)rm -f $@-t $@ && \ - cp $(srcdir)/test-posix_spawn1.in.sh $@-t && \ + cp $(srcdir)/test-posix_spawn-dup2-stdout.in.sh $@-t && \ mv $@-t $@ -MOSTLYCLEANFILES += test-posix_spawn1.sh test-posix_spawn1.sh-t +MOSTLYCLEANFILES += test-posix_spawn-dup2-stdout.sh test-posix_spawn-dup2-stdout.sh-t BUILT_SOURCES += test-posix_spawn2.sh test-posix_spawn2.sh: test-posix_spawn2.in.sh diff --git a/tests/test-posix_spawn1.c b/tests/test-posix_spawn-dup2-stdout.c similarity index 98% rename from tests/test-posix_spawn1.c rename to tests/test-posix_spawn-dup2-stdout.c index 6997546b4a..d639afacc7 100644 --- a/tests/test-posix_spawn1.c +++ b/tests/test-posix_spawn-dup2-stdout.c @@ -53,7 +53,7 @@ SIGNATURE_CHECK (posix_spawn_file_actions_adddup2, int, #include #include -#define CHILD_PROGRAM_FILENAME "test-posix_spawn1.sh" +#define CHILD_PROGRAM_FILENAME "test-posix_spawn-dup2-stdout.sh" static int fd_safer (int fd) diff --git a/tests/test-posix_spawn1.in.sh b/tests/test-posix_spawn-dup2-stdout.in.sh similarity index 100% rename from tests/test-posix_spawn1.in.sh rename to tests/test-posix_spawn-dup2-stdout.in.sh -- 2.39.5