Similiar with aio_read/9-1, this case try to overflow the aio queue by call NUM_AIOCBS times aio_write. But for some system, the queue has no limit. So check the _SC_AIO_MAX, if no limit then return UNSUPPORT.
Signed-off-by: Kang Kai <[email protected]> --- .../conformance/interfaces/aio_write/7-1.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_write/7-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_write/7-1.c index 164e9ae..3857136 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_write/7-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_write/7-1.c @@ -50,7 +50,7 @@ int main() int err; int ret; - if (sysconf(_SC_ASYNCHRONOUS_IO) < 200112L) + if (sysconf(_SC_ASYNCHRONOUS_IO) < 200112L || sysconf(_SC_AIO_MAX) == -1) return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_write_4_1_%d", @@ -106,4 +106,4 @@ int main() printf (TNAME " PASSED\n"); return PTS_PASS; -} \ No newline at end of file +} -- 1.7.5.4 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
