syscalls/pipe14: Add new test
PATCH 1/1 syscalls/pipe14: Add new test
New test to verify, if the write end of a pipe is closed, then a process reading from the pipe will see end-of-file (i.e., read() returns 0) once it has read all remaining data in the pipe.
Signed-off-by Avinesh Kumar <[email protected]>
--- runtest/syscalls | 1 + testcases/kernel/syscalls/pipe/.gitignore | 1 + testcases/kernel/syscalls/pipe/pipe14.c | 46 +++++++++++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 testcases/kernel/syscalls/pipe/pipe14.c
runtest/syscalls +1 -0
@@ -988,6 +988,7 @@ pipe10 pipe10 pipe11 pipe11 pipe12 pipe12 pipe13 pipe13 +pipe14 pipe14 pipe2_01 pipe2_01 pipe2_02 pipe2_02
testcases/kernel/syscalls/pipe/.gitignore +1 -0
@@ -11,3 +11,4 @@ /pipe11 /pipe12 /pipe13 +/pipe14
testcases/kernel/syscalls/pipe/pipe14.c new file +46 -0
46 lines not on this page · raw message
Signature · 5 lines
2.41.0 -- Mailing list info: https://lists.linux.it/listinfo/ltp
Hi!
Applied, thanks.
Signature · 5 lines
Cyril Hrubis [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp