add new testcase for bind
PATCH v3 1/1 add new testcase for bind
With
0fb44559ffd6 af_unix: move unix_mknod() out of bindlock
the behavior of bind() for STREAM UNIX sockets changed in case a socket that is already bound is passed to bind() again.
This testcase fails for the new behavior and passes for the old one.
---
Changes to v2:
change to relative socket path and letting the harness handle the temporaty directory
Changes to v1:
I just cleaned the includes and comments as suggested.
--- runtest/syscalls | 1 + testcases/kernel/syscalls/bind/.gitignore | 1 + testcases/kernel/syscalls/bind/bind03.c | 81 +++++++++++++++++++++++ 3 files changed, 83 insertions(+) create mode 100644 testcases/kernel/syscalls/bind/bind03.c
runtest/syscalls +1 -0
@@ -29,6 +29,7 @@ asyncio02 asyncio02 bind01 bind01 bind02 bind02 +bind03 bind03 bdflush01 bdflush01
testcases/kernel/syscalls/bind/.gitignore +1 -0
@@ -1,2 +1,3 @@ /bind01 /bind02 +/bind03
testcases/kernel/syscalls/bind/bind03.c new file +81 -0
81 lines not on this page · raw message
Signature · 1 line
2.18.0
PATCH v3 1/1 add new testcase for bind
Hi Michael,
Quoted 10 lines
With
0fb44559ffd6af_unix: moveunix_mknod()out of bindlock
the behavior ofbind()for STREAM UNIX sockets changed in case a socket that is already bound is passed tobind()again.This testcase fails for the new behavior and passes for the old one.
Signed-off-by Michael Moese <[email protected]>---
Pushed (with slightly changed commit message), thanks!
Kind regards,
Petr