aboutsummaryrefslogtreecommitdiff
path: root/stdio-common/test-popen.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common/test-popen.c')
-rw-r--r--stdio-common/test-popen.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/stdio-common/test-popen.c b/stdio-common/test-popen.c
index 6e98d3c..206f212 100644
--- a/stdio-common/test-popen.c
+++ b/stdio-common/test-popen.c
@@ -59,7 +59,7 @@ do_test (void)
the perhaps incompatible new shared libraries. */
unsetenv ("LD_LIBRARY_PATH");
- output = popen ("/bin/cat >/tmp/tstpopen.tmp", "w");
+ output = popen ("/bin/cat >" OBJPFX "tstpopen.tmp", "w");
if (output == NULL)
{
perror ("popen");
@@ -69,10 +69,10 @@ do_test (void)
write_data (output);
wstatus = pclose (output);
printf ("writing pclose returned %d\n", wstatus);
- input = popen ("/bin/cat /tmp/tstpopen.tmp", "r");
+ input = popen ("/bin/cat " OBJPFX "tstpopen.tmp", "r");
if (input == NULL)
{
- perror ("/tmp/tstpopen.tmp");
+ perror (OBJPFX "tstpopen.tmp");
puts ("Test FAILED!");
exit (1);
}
@@ -80,7 +80,7 @@ do_test (void)
rstatus = pclose (input);
printf ("reading pclose returned %d\n", rstatus);
- remove ("/tmp/tstpopen.tmp");
+ remove (OBJPFX "tstpopen.tmp");
errno = 0;
output = popen ("/bin/cat", "m");