When there are 10 write request queued with the 2nd request invalid as fd=-1,
(sometimes) the sigrt1_handler still works for all requests, so num_received
will be equal to NUM_AIOCBS.
And for this invalid request, we can get output like this:
lio_listio/14-1.c req 2: error = 9 - return = -1
which indicates this request has failed, but all other requests succeeded.
Since the test purpose in the original "method" field is to check good request
do not fail:
* - open a file for writing
* - submit a list with an invalid aiocb to lio_listio in LIO_NOWAIT mode
* - check that the good requests do not fail
maybe it isn't necessary to let the testcase fail when num_received isn't
equal to NUM_AIOCBS-1.
Please review. Thanks.
Get latest updates about Open Source Projects, Conferences and News.