linux-test-project / ltp

Linux Test Project (mailing list: https://lists.linux.it/listinfo/ltp)
https://linux-test-project.readthedocs.io/
GNU General Public License v2.0
2.3k stars 1.01k forks source link

Why aio_error3-1 UNTESTED #883

Closed luyuantaolll closed 2 years ago

luyuantaolll commented 2 years ago

Example in:open_posix_testsuite/conformance/interfaces/aio_error/3-1.c testcase said that : aio_error() may fail if:[EINVAL] The aiocbp argument does not refer to an asynchronous But aio_error(&aiocb) return zero

metan-ucw commented 2 years ago

Well it's exactly as the test reported 'may fail' means optional behavior in POSIX spec, so the test reports that the optional functionality does not seem to be implemented.

Generally Linux usually does not implement anything that is optional in POSIX while BSDs usually implement most of the optional behavior.

luyuantaolll commented 2 years ago

Thank you. I checked AIO_ Error source code does not seem to realize this function