Skip to contentSkip to conversation

lib/tst_test.c: fix error message for zero tcnt

PATCH New Eric Biggers 2 participants 2 messages Mar 15, 2019 – Mar 18, 2019 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lib/tst_test.c: fix error message for zero tcnt

From: Eric Biggers <[email protected]>

Remove the word "not".

---
 lib/tst_test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/tst_test.c +1 -1
index 7dd890b8d..ba5eab011 100644
@@ -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
#1 lore raw

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".

---
  lib/tst_test.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
lib/tst_test.c +1 -1
index 7dd890b8d..ba5eab011 100644
@@ -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()");