pty03: Regression test for slip/slcan data race
RFC PATCH 1/1 pty03: Regression test for slip/slcan data race
Signed-off-by Richard Palethorpe <[email protected]>
---
The kernel patch to fix this is still under review:
https://lore.kernel.org/netdev/[email protected]/T/#u
testcases/kernel/pty/Makefile | 2 + testcases/kernel/pty/pty03.c | 132 ++++++++++++++++++++++++++++++++++ 2 files changed, 134 insertions(+) create mode 100644 testcases/kernel/pty/pty03.c
testcases/kernel/pty/Makefile +2 -0
@@ -26,4 +26,6 @@ include $(top_srcdir)/include/mk/testcases.mk CPPFLAGS += -D_GNU_SOURCE +pty03: LDFLAGS += -pthread + include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/kernel/pty/pty03.c new file +132 -0
132 lines not on this page · raw message
Signature · 1 line
2.24.0
RFC PATCH 1/1 pty03: Regression test for slip/slcan data race
Hi!
Quoted 13 lines
The kernel patch to fix this is still under review:
https://lore.kernel.org/netdev/[email protected]/T/#utestcases/kernel/pty/Makefile | 2 + testcases/kernel/pty/pty03.c | 132 ++++++++++++++++++++++++++++++++++ 2 files changed, 134 insertions(+) create mode 100644 testcases/kernel/pty/pty03.ctestcases/kernel/pty/Makefile +0
-0
testcases/kernel/pty/Makefile include $(top_srcdir)/include/mk/testcases.mk · line 29
Quoted 4 lines
testcases/kernel/pty/Makefile +1
-0@@ -26,4 +26,6 @@ include $(top_srcdir)/include/mk/testcases.mk CPPFLAGS += -D_GNU_SOURCE +pty03: LDFLAGS += -pthread
This has to be CFLAGS +=
All the manual pages say "compile & link with -pthread".
Other than that the test looks fine. Ideally we should add the linux git tag once the upstream patch is accepted, then merge the test.
Signature · 2 lines
Cyril Hrubis [email protected]