From 76e154f7ddf49cf4cf3c74931917fc50f6b61df8 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 17 Dec 2020 02:44:31 +0100 Subject: [PATCH] posix_spawnp-tests: Rename test. * tests/test-posix_spawn-dup2-stdin.c: Renamed from tests/test-posix_spawn2.c. * tests/test-posix_spawn-dup2-stdin.in.sh: Renamed from tests/test-posix_spawn2.in.sh. * modules/posix_spawnp-tests (Files, Makefile.am): Update. --- ChangeLog | 7 +++++++ modules/posix_spawnp-tests | 16 ++++++++-------- ...ix_spawn2.c => test-posix_spawn-dup2-stdin.c} | 2 +- ...2.in.sh => test-posix_spawn-dup2-stdin.in.sh} | 0 4 files changed, 16 insertions(+), 9 deletions(-) rename tests/{test-posix_spawn2.c => test-posix_spawn-dup2-stdin.c} (98%) rename tests/{test-posix_spawn2.in.sh => test-posix_spawn-dup2-stdin.in.sh} (100%) diff --git a/ChangeLog b/ChangeLog index e80c3f12a2..8d959997bb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2020-12-16 Bruno Haible + posix_spawnp-tests: Rename test. + * tests/test-posix_spawn-dup2-stdin.c: Renamed from + tests/test-posix_spawn2.c. + * tests/test-posix_spawn-dup2-stdin.in.sh: Renamed from + tests/test-posix_spawn2.in.sh. + * modules/posix_spawnp-tests (Files, Makefile.am): Update. + posix_spawnp-tests: Rename test. * tests/test-posix_spawn-dup2-stdout.c: Renamed from tests/test-posix_spawn1.c. diff --git a/modules/posix_spawnp-tests b/modules/posix_spawnp-tests index 14bbcda36a..1f6bbc7b6e 100644 --- a/modules/posix_spawnp-tests +++ b/modules/posix_spawnp-tests @@ -1,8 +1,8 @@ Files: 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/test-posix_spawn-dup2-stdin.c +tests/test-posix_spawn-dup2-stdin.in.sh tests/signature.h Depends-on: @@ -35,8 +35,8 @@ AM_CONDITIONAL([POSIX_SPAWN_PORTED], [test $posix_spawn_ported = yes]) Makefile.am: if POSIX_SPAWN_PORTED -TESTS += test-posix_spawn-dup2-stdout test-posix_spawn2 -check_PROGRAMS += test-posix_spawn-dup2-stdout test-posix_spawn2 +TESTS += test-posix_spawn-dup2-stdout test-posix_spawn-dup2-stdin +check_PROGRAMS += test-posix_spawn-dup2-stdout test-posix_spawn-dup2-stdin BUILT_SOURCES += test-posix_spawn-dup2-stdout.sh test-posix_spawn-dup2-stdout.sh: test-posix_spawn-dup2-stdout.in.sh @@ -45,10 +45,10 @@ test-posix_spawn-dup2-stdout.sh: test-posix_spawn-dup2-stdout.in.sh mv $@-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 +BUILT_SOURCES += test-posix_spawn-dup2-stdin.sh +test-posix_spawn-dup2-stdin.sh: test-posix_spawn-dup2-stdin.in.sh $(AM_V_GEN)rm -f $@-t $@ && \ - cp $(srcdir)/test-posix_spawn2.in.sh $@-t && \ + cp $(srcdir)/test-posix_spawn-dup2-stdin.in.sh $@-t && \ mv $@-t $@ -MOSTLYCLEANFILES += test-posix_spawn2.sh test-posix_spawn2.sh-t +MOSTLYCLEANFILES += test-posix_spawn-dup2-stdin.sh test-posix_spawn-dup2-stdin.sh-t endif diff --git a/tests/test-posix_spawn2.c b/tests/test-posix_spawn-dup2-stdin.c similarity index 98% rename from tests/test-posix_spawn2.c rename to tests/test-posix_spawn-dup2-stdin.c index fb73c0e718..bec33fc1ea 100644 --- a/tests/test-posix_spawn2.c +++ b/tests/test-posix_spawn-dup2-stdin.c @@ -31,7 +31,7 @@ #include #include -#define CHILD_PROGRAM_FILENAME "test-posix_spawn2.sh" +#define CHILD_PROGRAM_FILENAME "test-posix_spawn-dup2-stdin.sh" static int fd_safer (int fd) diff --git a/tests/test-posix_spawn2.in.sh b/tests/test-posix_spawn-dup2-stdin.in.sh similarity index 100% rename from tests/test-posix_spawn2.in.sh rename to tests/test-posix_spawn-dup2-stdin.in.sh -- 2.39.5