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

open_posix_testsuite: Why the test failed? #893

Closed haidong-yao closed 2 years ago

haidong-yao commented 2 years ago

PC: ubuntu20.04

run: ./run-all-posix-option-group-tests.sh

error log:

aio_error/3-1.c return code didn't match expected value (0 != 22). aio_return/2-1.c Second call to aio_return() may return -1; aio_return() returned 111 aio_return/3-2.c aio_return() may fail with (-1, 22); failed with (4096, 0) instead aio_return/4-1.caio_return() have not failed ..... UNTESTED: shm_open() did not fail with ENAMETOLONG UNTESTED: shm_open() did not fail with ENAMETOLONG UNTESTED: shm_open() did not fail with ENAMETOLONG UNTESTED: shm_open() did not fail with ENAMETOLONG

run-all-posix-option-group-tests.log

metan-ucw commented 2 years ago

The pthread_rwlock_rdlock() failures are caused by long standing bug in glibc see https://sourceware.org/bugzilla/show_bug.cgi?id=25619. For the rest of the failures you will have to look at the tests and figure out why yourself.

Also note that UNTESTED (and possibly some of the UNRESOLVED) are not failures, there is quite a lot of optional behavior in POSIX in the case of UNTESTED for shm_open() there simply is no artificial limit hence the call does not fail with ENAMETOLONG.

haidong-yao commented 2 years ago

Thanks

metan-ucw commented 2 years ago

Let's close this now.