Skip to contentSkip to conversation

syscalls/pipe14: Add new test

PATCH In review Avinesh Kumar 2 participants 2 messages Jun 27, 2023

lore
Share & tools
lore
#0 lore raw

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.

---
 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
index e5ad2c2f9..c6524d7c4 100644
@@ -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
index 23e7186a6..774d73205 100644
@@ -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