lib/tst_test.c: fix error message for zero tcnt
PATCH 1/1 lib/tst_test.c: fix error message for zero tcnt
From: Eric Biggers <[email protected]>
Remove the word "not".
Signed-off-by Eric Biggers <[email protected]>
--- lib/tst_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/tst_test.c +1 -1
@@ -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()" );
Signature · 1 line
2.21.0.360.g471c308f928-goog
PATCH 1/1 lib/tst_test.c: fix error message for zero tcnt
Hi Eric,
This is obviously OK, pushed. :-)
Best Regards,
Xiao Yang
Quoted 22 lines · Eric Biggers
From: Eric Biggers<[email protected]>
Remove the word "not".
Signed-off-by Eric Biggers<[email protected]>--- lib/tst_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)lib/tst_test.c +1
-1@@ -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()" );