summaryrefslogtreecommitdiff
path: root/rt
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2013-05-26 16:21:10 +0200
committerThomas Schwinge <thomas@codesourcery.com>2013-05-26 16:21:10 +0200
commitd9e11d0c51182483d30760f3c66000a0e9b8c922 (patch)
treee1d147b2d9d270f8cec60e499bc5fd738144d4c2 /rt
parentd5ce2d1c5dfae01688cad679b2fbd071e70a1f3a (diff)
parent9a079e270a9bec7e1fe28aeda63e07c1bb808d44 (diff)
Merge branch 'baseline' into refs/top-bases/tschwinge/Roger_Whittaker
Conflicts: sysdeps/mach/hurd/i386/init-first.c
Diffstat (limited to 'rt')
-rw-r--r--rt/tst-aio7.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/rt/tst-aio7.c b/rt/tst-aio7.c
index c156e86dd0..b25c33c153 100644
--- a/rt/tst-aio7.c
+++ b/rt/tst-aio7.c
@@ -78,7 +78,7 @@ do_test (void)
puts ("aio_cancel( -1, {-2..} ) did not return -1 or errno != EBADF");
}
- /* Test for aio_fsync() detecting bad fd, and fd not open for writing. */
+ /* Test for aio_fsync() detecting bad fd. */
{
struct aiocb cb;
int fd = -1;
@@ -98,21 +98,6 @@ do_test (void)
puts ("aio_fsync( op, {-1..} ) did not return -1 or errno != EBADF");
++result;
}
-
- if ((fd = open ("/dev/null", O_RDONLY)) < 0)
- error (1, errno, "opening /dev/null");
-
- cb.aio_fildes = fd;
- errno = 0;
-
- /* Case two: valid fd but open for read only. */
- if (aio_fsync (O_SYNC, &cb) != -1 || errno != EBADF)
- {
- puts ("aio_fsync( op, {RO..} ) did not return -1 or errno != EBADF");
- ++result;
- }
-
- close (fd);
}
/* Test for aio_suspend() suspending even if completed elements in list. */