[LTP] [PATCH] lib/tst_test.c: fix error message for zero tcnt

Xiao Yang yangx.jy@cn.fujitsu.com
Mon Mar 18 07:19:23 CET 2019


Hi Eric,

This is obviously OK, pushed. :-)

Best Regards,
Xiao Yang
On 2019/03/16 0:42, Eric Biggers wrote:
> From: Eric Biggers<ebiggers@google.com>
>
> Remove the word "not".
>
> Signed-off-by: Eric Biggers<ebiggers@google.com>
> ---
>   lib/tst_test.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/tst_test.c b/lib/tst_test.c
> index 7dd890b8d..ba5eab011 100644
> --- a/lib/tst_test.c
> +++ b/lib/tst_test.c
> @@ -698,7 +698,7 @@ static void assert_test_fn(void)
>   		tst_brk(TBROK, "You can define only one test function");
>
>   	if (tst_test->test&&  !tst_test->tcnt)
> -		tst_brk(TBROK, "Number of tests (tcnt) must not be>  0");
> +		tst_brk(TBROK, "Number of tests (tcnt) must be>  0");
>
>   	if (!tst_test->test&&  tst_test->tcnt)
>   		tst_brk(TBROK, "You can define tcnt only for test()");





More information about the ltp mailing list