[LTP] [RFC][PATCH 1/2] runtest/ipc: Enable named pipes on non-blocking IO

Li Wang liwang@redhat.com
Sun Apr 6 04:55:15 CEST 2025


On Thu, Apr 3, 2025 at 6:19 PM Petr Vorel <pvorel@suse.cz> wrote:

> Tests were disabled from the start (edab67b3a0 in 2001) due EAGAIN.
> Tests are working now even on very old SLE12-SP3 based 4.4 kernel,
> therefore enable them.
>
> Signed-off-by: Petr Vorel <pvorel@suse.cz>
>
Tested-by: Li Wang <liwang@redhat.com>
Reviewed-by: Li Wang <liwang@redhat.com>


---
>  runtest/ipc | 6 ++----
>  1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/runtest/ipc b/runtest/ipc
> index db7f7bed58..f5cdea1974 100644
> --- a/runtest/ipc
> +++ b/runtest/ipc
> @@ -4,10 +4,9 @@
>  pipeio_1 pipeio -T pipeio_1 -c 5 -s 4090 -i 100 -b -f x80
>  # spawns 5 children to write 100 chunks of 4090 bytes to a named pipe
>  # using blocking I/O
> -#pipeio_2 pipeio -T pipeio_2 -c 5 -s 4090 -i 100 -f x80
> +pipeio_2 pipeio -T pipeio_2 -c 5 -s 4090 -i 100 -f x80
>  # spawns 5 children to write 100 chunks of 4090 bytes to a named pipe
>  # using non-blocking I/O
> -# This test hits EAGAIN, which pipeio doesn't handle at the moment
>  pipeio_3 pipeio -T pipeio_3 -c 5 -s 4090 -i 100 -u -b -f x80
>  # spawns 5 children to write 100 chunks of 4090 bytes to an unnamed pipe
>  # using blocking I/O
> @@ -20,10 +19,9 @@ pipeio_5 pipeio -T pipeio_5 -c 5 -s 5000 -i 10 -b -f x80
>  pipeio_6 pipeio -T pipeio_6 -c 5 -s 5000 -i 10 -b -u -f x80
>  # spawns 5 children to write 10 chunks of 5000 bytes to an unnamed pipe
>  # using blocking I/O
> -#pipeio_7 pipeio -T pipeio_7 -c 5 -s 5000 -i 10 -f x80
> +pipeio_7 pipeio -T pipeio_7 -c 5 -s 5000 -i 10 -f x80
>  # spawns 5 children to write 10 chunks of 5000 bytes to a named pipe
>  # using non-blocking I/O
> -# This test hits EAGAIN, which pipeio doesn't handle at the moment
>  pipeio_8 pipeio -T pipeio_8 -c 5 -s 5000 -i 10 -u -f x80
>  # spawns 5 children to write 10 chunks of 5000 bytes to an unnamed pipe
>  # using non-blocking I/O
> --
> 2.49.0
>
>

-- 
Regards,
Li Wang


More information about the ltp mailing list