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

Petr Vorel pvorel@suse.cz
Thu Jul 26 09:45:26 CEST 2018


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



More information about the ltp mailing list