diff options
author | Roland McGrath <roland@hack.frob.com> | 2013-04-16 12:11:26 -0700 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2013-04-16 12:11:26 -0700 |
commit | e913141d5f4d4eed4b65f55b0077aeb1c8234e25 (patch) | |
tree | 6fe870f3f1bdb6bc874fc51bf462e50f4a7f53bc /rt/tst-aio7.c | |
parent | 4856bcd2df33adfc36c762a48853ec613c0d2f68 (diff) | |
download | glibc-e913141d5f4d4eed4b65f55b0077aeb1c8234e25.tar.gz glibc-e913141d5f4d4eed4b65f55b0077aeb1c8234e25.tar.xz glibc-e913141d5f4d4eed4b65f55b0077aeb1c8234e25.zip |
Don't test O_RDONLY case in tst-aio7.
Diffstat (limited to 'rt/tst-aio7.c')
-rw-r--r-- | rt/tst-aio7.c | 17 |
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. */ |