Skip to contentSkip to conversation

add new testcase for bind

PATCH New Michael Moese 2 participants 2 messages Jul 27, 2018 – Aug 14, 2018

lore
Share & tools
lore
#0 lore raw

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
index dc72484cb..e8b93a65b 100644
@@ -29,6 +29,7 @@ asyncio02 asyncio02
 
 bind01 bind01
 bind02 bind02
+bind03 bind03
 
 bdflush01 bdflush01
 
testcases/kernel/syscalls/bind/.gitignore +1 -0
index ba46f4fa2..4ebea9ee7 100644
@@ -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
#1 lore raw

PATCH v3 1/1 add new testcase for bind

Hi Michael,

Quoted 10 lines

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.

---

Pushed (with slightly changed commit message), thanks!

Kind regards,
Petr