mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Fri Feb 24 14:40:48 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* stdio/bug4.c: Put temporary files in /tmp. * stdio/bug3.c: Likewise. * stdio/bug5.c: Likewise. * stdio/test-fseek.c: Likewise. * stdio/test-popen.c: Likewise.
This commit is contained in:
@ -37,7 +37,7 @@ DEFUN_VOID(main)
|
||||
FILE *output, *input;
|
||||
int wstatus, rstatus;
|
||||
|
||||
output = popen ("/bin/cat >tstpopen.tmp", "w");
|
||||
output = popen ("/bin/cat >/tmp/tstpopen.tmp", "w");
|
||||
if (output == NULL)
|
||||
{
|
||||
perror ("popen");
|
||||
@ -47,10 +47,10 @@ DEFUN_VOID(main)
|
||||
write_data (output);
|
||||
wstatus = pclose (output);
|
||||
printf ("writing pclose returned %d\n", wstatus);
|
||||
input = popen ("/bin/cat tstpopen.tmp", "r");
|
||||
input = popen ("/bin/cat /tmp/tstpopen.tmp", "r");
|
||||
if (input == NULL)
|
||||
{
|
||||
perror ("tstpopen.tmp");
|
||||
perror ("/tmp/tstpopen.tmp");
|
||||
puts ("Test FAILED!");
|
||||
exit (1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user