Skip to content

Improve test_1_to_1_initmsg_connect SCTP test

Martin Doucha ltp 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Add SAFE_ACCEPT() to LTP safe net libraryinclude/safe_net_fn.h include/tst_safe_net.h lib/safe_net.c+22 -01 reply
2/3Port test_1_to_1_initmsg_connect (SCTP) to new APIutils/sctp/func_tests/test_1_to_1_initmsg_connect.c+42 -672 replies
2/3Port test_1_to_1_initmsg_connect (SCTP) to new API+0 -01 reply
3/3Split SCTP initmsg test into two test casesutils/sctp/func_tests/test_1_to_1_initmsg_connect.c+36 -201 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchPetr Vorel
1/3R-b
2/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [LTP] [PATCH 0/3] Improve test_1_to_1_initmsg_connect SCTP test

One of the SCTP tests often fails on older kernels on some platforms due to memory allocation issues. This patchset ports the test to the new LTP library and fixes the failures by splitting the test into two test cases:
1. Functional test with reduced number of connection streams
2. Stress test with original (maximum) number of connection streams

The stress test accepts ENOMEM error in connect() as success.

This patchset also adds SAFE_ACCEPT() function to the LTP library to simplify network tests.

Martin Doucha (3):
Add SAFE_ACCEPT() to LTP safe net library Port test_1_to_1_initmsg_connect (SCTP) to new API Split SCTP initmsg test into two test cases

 include/safe_net_fn.h                         |   3 +
 include/tst_safe_net.h                        |   3 +
 lib/safe_net.c                                |  16 ++
 .../func_tests/test_1_to_1_initmsg_connect.c  | 161 +++++++++---------
 4 files changed, 98 insertions(+), 85 deletions(-)
Signature · 1 line
2.24.0