Skip to contentSkip to conversation

pty: Test data transmission with SLIP line discipline

PATCH New Richard Palethorpe 2 participants 2 messages Mar 9, 2020

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 pty: Test data transmission with SLIP line discipline

Basic transmission test and try to trigger a possible race between receiving and hangup (it appears there is none from my testing).

This only includes SLIP for now, but more disciplines can be added. Probably at least CAN. However the packet generation will be different for each.

---

V4:
* Only use TBROK with tst_brk and gracefully handle absent ldisc

 runtest/pty                     |   1 +
 testcases/kernel/pty/.gitignore |   1 +
 testcases/kernel/pty/pty04.c    | 281 ++++++++++++++++++++++++++++++++
 3 files changed, 283 insertions(+)
 create mode 100644 testcases/kernel/pty/pty04.c
runtest/pty +1 -0
index e484da0ff..5587312d3 100644
@@ -2,6 +2,7 @@
 pty01 pty01
 pty02 pty02
 pty03 pty03
+pty04 pty04
 ptem01 ptem01
 hangup01 hangup01
 
testcases/kernel/pty/.gitignore +1 -0
index 5b4f6a8c9..c67d723d2 100644
@@ -3,3 +3,4 @@
 /pty01
 /pty02
 /pty03
+/pty04
testcases/kernel/pty/pty04.c new file +281 -0

281 lines not on this page · raw message

Signature · 1 line
2.24.0
#1 lore raw

PATCH v4 1/1 pty: Test data transmission with SLIP line discipline

Hi Richard,

Quoted 2 lines

V4:
* Only use TBROK with tst_brk and gracefully handle absent ldisc

Thanks for your patch, merged.

Kind regards,
Petr