summary refs log tree commit diff
path: root/posix/tst-spawn3.c
diff options
context:
space:
mode:
Diffstat (limited to 'posix/tst-spawn3.c')
-rw-r--r--posix/tst-spawn3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/posix/tst-spawn3.c b/posix/tst-spawn3.c
index dc6bed52a4..b60a783dd4 100644
--- a/posix/tst-spawn3.c
+++ b/posix/tst-spawn3.c
@@ -82,8 +82,8 @@ do_test (void)
   if (posix_spawn_file_actions_init (&a) != 0)
     FAIL_EXIT1 ("posix_spawn_file_actions_init");
 
-  /* Executes a /bin/sh echo $$ 2>&1 > /tmp/tst-spawn3.pid .  */
-  const char pidfile[] = "/tmp/tst-spawn3.pid";
+  /* Executes a /bin/sh echo $$ 2>&1 > ${objpfx}tst-spawn3.pid .  */
+  const char pidfile[] = OBJPFX "tst-spawn3.pid";
   if (posix_spawn_file_actions_addopen (&a, STDOUT_FILENO, pidfile, O_WRONLY |
 					O_CREAT | O_TRUNC, 0644) != 0)
     FAIL_EXIT1 ("posix_spawn_file_actions_addopen");