Skip to contentSkip to conversation

pty03: Regression test for slip/slcan data race

RFC PATCH Superseded Richard Palethorpe 2 participants 2 messages Jan 21, 2020

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 pty03: Regression test for slip/slcan data race

---

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
index f9fc4f57e..52bb56c8d 100644
@@ -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
#1 lore raw

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/#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 +0 -0
index f9fc4f57e..52bb56c8d 100644

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]