[LTP] [PATCH 1/2] netstress: TCONF on wrong -T parameter

Petr Vorel pvorel@suse.cz
Thu Jul 19 14:53:57 CEST 2018


Helps to find typo errors.

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 testcases/network/netstress/netstress.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/testcases/network/netstress/netstress.c b/testcases/network/netstress/netstress.c
index 17e401eb0..48fb0aabd 100644
--- a/testcases/network/netstress/netstress.c
+++ b/testcases/network/netstress/netstress.c
@@ -837,6 +837,8 @@ static void set_protocol_type(void)
 		proto_type = TYPE_DCCP;
 	else if (!strcmp(type, "sctp"))
 		proto_type = TYPE_SCTP;
+	else
+		tst_brk(TCONF, "wrong proto_type: '%s'", type);
 }
 
 static void setup(void)
-- 
2.18.0



More information about the ltp mailing list