All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH v2 1/3] netstress: TCONF if modprobe dccp fails
@ 2018-03-13 15:01 Petr Vorel
  2018-03-13 15:01 ` [LTP] [PATCH v2 2/3] lib: TCONF on "not supported" errnos in SAFE_SOCKET() Petr Vorel
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Petr Vorel @ 2018-03-13 15:01 UTC (permalink / raw)
  To: ltp

commit 22d43a959 ("netstress: load dccp module manually") added
functionality to trying to load dccp module. It's actually better to
exit with TCONF as unsuccessful modprobe means that dccp module is
missing.

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
LianWen, hope TCONF is ok for you:
http://lists.linux.it/pipermail/ltp/2018-February/007200.html
---
 testcases/network/netstress/netstress.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testcases/network/netstress/netstress.c b/testcases/network/netstress/netstress.c
index 4754bacf6..369a5eeb8 100644
--- a/testcases/network/netstress/netstress.c
+++ b/testcases/network/netstress/netstress.c
@@ -941,7 +941,7 @@ static void setup(void)
 		static const char * const argv[] = {"modprobe", "dccp", NULL};
 
 		if (tst_run_cmd(argv, NULL, NULL, 1))
-			tst_res(TWARN, "Failed to load DCCP module");
+			tst_brk(TCONF, "Failed to load DCCP module");
 
 		tst_res(TINFO, "DCCP %s", (client_mode) ? "client" : "server");
 		fastopen_api = fastopen_sapi = NULL;
-- 
2.16.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-03-14 12:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-13 15:01 [LTP] [PATCH v2 1/3] netstress: TCONF if modprobe dccp fails Petr Vorel
2018-03-13 15:01 ` [LTP] [PATCH v2 2/3] lib: TCONF on "not supported" errnos in SAFE_SOCKET() Petr Vorel
2018-03-14  0:42   ` sunlianwen
2018-03-14 12:09     ` Petr Vorel
2018-03-13 15:01 ` [LTP] [PATCH v2 3/3] tst_netload: Exit with TCONF when netstress exit with CONF Petr Vorel
2018-03-14 12:14 ` [LTP] [PATCH v2 1/3] netstress: TCONF if modprobe dccp fails Petr Vorel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.