commit 1472f4f8c458eac694b34dc06ec0a46006e06aae
tree 9af64da633fa856db1ff357dd1221063f0eb769e
parent bb7f057878a37ea8c569d4681d2c5db72391e2ae
author Martin Doucha <mdoucha@suse.cz> 2026-01-15 18:18:46 +0100
committer Petr Vorel <pvorel@suse.cz> 2026-01-16 13:22:17 +0100

    lio_listio_2-1: Rewrite test
    
    The test schedules multiple async writes into a file and then hopes that
    at least one will block long enough that a variable can be checked before
    the completion signal arrives. Use a socket pair instead of file
    to force async writes to block indefinitely. Then drain the socket after
    the first signal check and wait for the signal.
    
    Add cleanup helper function that will flush socket buffers, free allocated
    memory and close the sockets. Also make setup and cleanup simpler
    by statically allocating the aiocb structure array.
    
    Link: https://lore.kernel.org/ltp/20260115171847.28091-1-mdoucha@suse.cz/
    Reviewed-by: Petr Vorel <pvorel@suse.cz>
    Signed-off-by: Martin Doucha <mdoucha@suse.cz>


:100644 100644 efcd5b3fcb393e4400d4447dae17dbd64ff535d4 26a662d8e87dcac92f5022d0f6c75c9dc9b16212 M	testcases/open_posix_testsuite/conformance/interfaces/lio_listio/2-1.c
