Message ID | 20180719125358.948-1-pvorel@suse.cz |
---|---|
State | Accepted |
Delegated to: | Petr Vorel |
Headers | show |
Series | [1/2] netstress: TCONF on wrong -T parameter | expand |
Hi, > 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); Pushed with minor change: Using TBROK to be consistent with error messages in setup(): tst_brk(TBROK, "Invalid proto_type: '%s'", type); Kind regards, Petr
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)
Helps to find typo errors. Signed-off-by: Petr Vorel <pvorel@suse.cz> --- testcases/network/netstress/netstress.c | 2 ++ 1 file changed, 2 insertions(+)