summaryrefslogtreecommitdiff
path: root/stdio
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-02-24 19:47:17 +0000
committerRoland McGrath <roland@gnu.org>1995-02-24 19:47:17 +0000
commite66f63fb6364729aad510f5b3feb8a046775ec1a (patch)
tree9a30659f0c20386836b08c3f032014f157ac72b6 /stdio
parentb5388cb6b1e845544760ddc66b6581c5df9f2616 (diff)
downloadglibc-e66f63fb6364729aad510f5b3feb8a046775ec1a.tar.gz
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.
Diffstat (limited to 'stdio')
-rw-r--r--stdio/bug3.c2
-rw-r--r--stdio/bug4.c2
-rw-r--r--stdio/bug5.c4
-rw-r--r--stdio/test-fseek.c2
-rw-r--r--stdio/test-popen.c6
5 files changed, 8 insertions, 8 deletions
diff --git a/stdio/bug3.c b/stdio/bug3.c
index 0f3c7f1087..1684720b9f 100644
--- a/stdio/bug3.c
+++ b/stdio/bug3.c
@@ -8,7 +8,7 @@ DEFUN_VOID(main)
FILE *f;
int i;
- f = fopen("bugtest", "w+");
+ f = fopen("/tmp/bugtest", "w+");
for (i=0; i<9000; i++)
putc ('x', f);
fseek (f, 8180L, 0);
diff --git a/stdio/bug4.c b/stdio/bug4.c
index 8e67f1d7b9..00abf3c502 100644
--- a/stdio/bug4.c
+++ b/stdio/bug4.c
@@ -26,7 +26,7 @@ DEFUN(main, (argc, argv),
break;
}
- f = fopen("bugtest", "w+");
+ f = fopen("/tmp/bugtest", "w+");
for (i=0; i<9000; i++) {
putc('x', f);
}
diff --git a/stdio/bug5.c b/stdio/bug5.c
index 218af31352..18f069ae29 100644
--- a/stdio/bug5.c
+++ b/stdio/bug5.c
@@ -15,8 +15,8 @@ DEFUN_VOID(main)
{
FILE *in;
FILE *out;
- static char inname[] = "infile";
- static char outname[] = "outfile";
+ static char inname[] = "/tmp/bug5.in";
+ static char outname[] = "/tmp/bug5.out";
int i;
/* Create a test file. */
diff --git a/stdio/test-fseek.c b/stdio/test-fseek.c
index 398cac796f..d56c669a54 100644
--- a/stdio/test-fseek.c
+++ b/stdio/test-fseek.c
@@ -1,7 +1,7 @@
#include <ansidecl.h>
#include <stdio.h>
-#define TESTFILE "test.dat"
+#define TESTFILE "/tmp/test.dat"
int
main __P((void))
diff --git a/stdio/test-popen.c b/stdio/test-popen.c
index df6138b76f..b452f3f63c 100644
--- a/stdio/test-popen.c
+++ b/stdio/test-popen.c
@@ -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);
}