aboutsummaryrefslogtreecommitdiff
path: root/tests/test-spawn-pipe-main.c
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2022-03-29 01:18:04 -0700
committerDan Willemsen <dwillemsen@google.com>2022-03-29 01:19:29 -0700
commit24d5d8d1665f31b911b52d961938a1737f957c10 (patch)
tree4159a2dcfc6eb4837fb6732f78e23d70d3f270c9 /tests/test-spawn-pipe-main.c
parenta41dd3ba30d74cdaa946f453d0fe4035c3e2575d (diff)
downloadm4-24d5d8d1665f31b911b52d961938a1737f957c10.tar.gz
Upgrade to v1.4.19: replace contents with tarball
This preserves the Android-specific files, but replaces everything else with the contents of the 1.4.19 tarball. The METADATA update is the only change for the Android files, other updates will come in later changes. Change-Id: I9699b0fe119e7542e17497da8e4a11380b78867e
Diffstat (limited to 'tests/test-spawn-pipe-main.c')
-rw-r--r--tests/test-spawn-pipe-main.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test-spawn-pipe-main.c b/tests/test-spawn-pipe-main.c
index 6986eef..6809ab3 100644
--- a/tests/test-spawn-pipe-main.c
+++ b/tests/test-spawn-pipe-main.c
@@ -1,5 +1,5 @@
/* Test of create_pipe_bidi/wait_subprocess.
- Copyright (C) 2009-2016 Free Software Foundation, Inc.
+ Copyright (C) 2009-2021 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -12,7 +12,7 @@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with this program; if not, see <http://www.gnu.org/licenses/>. */
+ along with this program; if not, see <https://www.gnu.org/licenses/>. */
#include <config.h>
@@ -44,15 +44,15 @@ static void
test_pipe (const char *prog, bool stderr_closed)
{
int fd[2];
- char *argv[3];
+ const char *argv[3];
pid_t pid;
char buffer[2] = { 'a', 't' };
/* Set up child. */
- argv[0] = (char *) prog;
- argv[1] = (char *) (stderr_closed ? "1" : "0");
+ argv[0] = prog;
+ argv[1] = (stderr_closed ? "1" : "0");
argv[2] = NULL;
- pid = create_pipe_bidi (prog, prog, argv, false, true, true, fd);
+ pid = create_pipe_bidi (prog, prog, argv, NULL, false, true, true, fd);
ASSERT (0 <= pid);
ASSERT (STDERR_FILENO < fd[0]);
ASSERT (STDERR_FILENO < fd[1]);