about summary refs log tree commit diff
path: root/libio
diff options
context:
space:
mode:
Diffstat (limited to 'libio')
-rw-r--r--libio/tst-mmap-eofsync.c2
-rw-r--r--libio/tst-mmap-fflushsync.c2
-rw-r--r--libio/tst-mmap-offend.c2
-rw-r--r--libio/tst-mmap-setvbuf.c2
-rw-r--r--libio/tst-mmap2-eofsync.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/libio/tst-mmap-eofsync.c b/libio/tst-mmap-eofsync.c
index 73748369ad..e8ef727148 100644
--- a/libio/tst-mmap-eofsync.c
+++ b/libio/tst-mmap-eofsync.c
@@ -38,7 +38,7 @@ do_test (void)
   int result = 0;
   int c;
 
-  f = fopen (temp_file, "r");
+  f = fopen (temp_file, "rm");
   if (f == NULL)
     {
       perror (temp_file);
diff --git a/libio/tst-mmap-fflushsync.c b/libio/tst-mmap-fflushsync.c
index a4580e980b..24ae33cae7 100644
--- a/libio/tst-mmap-fflushsync.c
+++ b/libio/tst-mmap-fflushsync.c
@@ -38,7 +38,7 @@ do_test (void)
   int result = 0;
   int c;
 
-  f = fopen (temp_file, "r");
+  f = fopen (temp_file, "rm");
   if (f == NULL)
     {
       perror (temp_file);
diff --git a/libio/tst-mmap-offend.c b/libio/tst-mmap-offend.c
index 2025f1d2a8..19732e6201 100644
--- a/libio/tst-mmap-offend.c
+++ b/libio/tst-mmap-offend.c
@@ -34,7 +34,7 @@ do_test (void)
 {
   unsigned char buffer[8192];
   int result = 0;
-  FILE *f = fopen (temp_file, "r");
+  FILE *f = fopen (temp_file, "rm");
   size_t cc;
 
   if (f == NULL)
diff --git a/libio/tst-mmap-setvbuf.c b/libio/tst-mmap-setvbuf.c
index 47854b714e..3512357c60 100644
--- a/libio/tst-mmap-setvbuf.c
+++ b/libio/tst-mmap-setvbuf.c
@@ -48,7 +48,7 @@ int main (void)
   fputs (test, f);
   fclose (f);
 
-  f = fopen (name, "r");
+  f = fopen (name, "rm");
   if (f == NULL)
     {
       printf ("%u: cannot fopen temporary file: %m\n", __LINE__);
diff --git a/libio/tst-mmap2-eofsync.c b/libio/tst-mmap2-eofsync.c
index aefe472564..60bad94027 100644
--- a/libio/tst-mmap2-eofsync.c
+++ b/libio/tst-mmap2-eofsync.c
@@ -44,7 +44,7 @@ do_test (void)
   int result = 0;
   int c;
 
-  f = fopen (temp_file, "r");
+  f = fopen (temp_file, "rm");
   if (f == NULL)
     {
       perror (temp_file);