Skip to content

Commit 5f493c6

Browse files
pabigotcarlescufi
authored andcommitted
tests: cbprintf: make skip messages consistent
TC_PRINTF doesn't append a newline, so the skip messages sometimes ran into the test result message. Signed-off-by: Peter Bigot <[email protected]>
1 parent 928183b commit 5f493c6

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

tests/unit/cbprintf/main.c

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ static void test_c(void)
292292
PRF_CHECK("a", rc);
293293

294294
if (IS_ENABLED(CONFIG_CBPRINTF_NANO)) {
295-
TC_PRINT("short test for nano");
295+
TC_PRINT("short test for nano\n");
296296
return;
297297
}
298298

@@ -337,7 +337,7 @@ static void test_s(void)
337337
}
338338

339339
if (IS_ENABLED(CONFIG_CBPRINTF_NANO)) {
340-
TC_PRINT("short test for nano");
340+
TC_PRINT("short test for nano\n");
341341
return;
342342
}
343343

@@ -414,7 +414,7 @@ static void test_d_length(void)
414414
}
415415

416416
if (IS_ENABLED(CONFIG_CBPRINTF_NANO)) {
417-
TC_PRINT("short test for nano");
417+
TC_PRINT("short test for nano\n");
418418
return;
419419
}
420420

@@ -450,7 +450,7 @@ static void test_d_flags(void)
450450
int rc;
451451

452452
if (IS_ENABLED(CONFIG_CBPRINTF_NANO)) {
453-
TC_PRINT("skipped test for nano");
453+
TC_PRINT("skipped test for nano\n");
454454
return;
455455
}
456456

@@ -509,7 +509,7 @@ static void test_x_length(void)
509509
}
510510

511511
if (IS_ENABLED(CONFIG_CBPRINTF_NANO)) {
512-
TC_PRINT("short test for nano");
512+
TC_PRINT("short test for nano\n");
513513
return;
514514
}
515515

@@ -569,7 +569,7 @@ static void test_x_flags(void)
569569
int rc;
570570

571571
if (IS_ENABLED(CONFIG_CBPRINTF_NANO)) {
572-
TC_PRINT("skipped test for nano");
572+
TC_PRINT("skipped test for nano\n");
573573
return;
574574
}
575575

@@ -602,7 +602,7 @@ static void test_o(void)
602602
int rc;
603603

604604
if (IS_ENABLED(CONFIG_CBPRINTF_NANO)) {
605-
TC_PRINT("skipped test for nano");
605+
TC_PRINT("skipped test for nano\n");
606606
return;
607607
}
608608

@@ -615,7 +615,7 @@ static void test_o(void)
615615
static void test_fp_value(void)
616616
{
617617
if (!IS_ENABLED(CONFIG_CBPRINTF_FP_SUPPORT)) {
618-
TC_PRINT("skipping unsupported feature");
618+
TC_PRINT("skipping unsupported feature\n");
619619
return;
620620
}
621621

@@ -808,7 +808,7 @@ static void test_fp_value(void)
808808
static void test_fp_length(void)
809809
{
810810
if (IS_ENABLED(CONFIG_CBPRINTF_NANO)) {
811-
TC_PRINT("skipped test for nano");
811+
TC_PRINT("skipped test for nano\n");
812812
return;
813813
}
814814

@@ -849,7 +849,7 @@ static void test_fp_length(void)
849849
static void test_fp_flags(void)
850850
{
851851
if (!IS_ENABLED(CONFIG_CBPRINTF_FP_SUPPORT)) {
852-
TC_PRINT("skipping unsupported feature");
852+
TC_PRINT("skipping unsupported feature\n");
853853
return;
854854
}
855855

@@ -882,7 +882,7 @@ static void test_fp_flags(void)
882882
static void test_star_width(void)
883883
{
884884
if (IS_ENABLED(CONFIG_CBPRINTF_NANO)) {
885-
TC_PRINT("skipped test for nano");
885+
TC_PRINT("skipped test for nano\n");
886886
return;
887887
}
888888

@@ -898,7 +898,7 @@ static void test_star_width(void)
898898
static void test_star_precision(void)
899899
{
900900
if (IS_ENABLED(CONFIG_CBPRINTF_NANO)) {
901-
TC_PRINT("skipped test for nano");
901+
TC_PRINT("skipped test for nano\n");
902902
return;
903903
}
904904

@@ -927,11 +927,11 @@ static void test_star_precision(void)
927927
static void test_n(void)
928928
{
929929
if (!IS_ENABLED(CONFIG_CBPRINTF_N_SPECIFIER)) {
930-
TC_PRINT("skipping unsupported feature");
930+
TC_PRINT("skipping unsupported feature\n");
931931
return;
932932
}
933933
if (IS_ENABLED(CONFIG_CBPRINTF_NANO)) {
934-
TC_PRINT("skipped test for nano");
934+
TC_PRINT("skipped test for nano\n");
935935
return;
936936
}
937937

@@ -1008,7 +1008,7 @@ static void test_arglen(void)
10081008
static void test_p(void)
10091009
{
10101010
if (IS_ENABLED(USE_LIBC)) {
1011-
TC_PRINT("skipping on libc");
1011+
TC_PRINT("skipping on libc\n");
10121012
return;
10131013
}
10141014

0 commit comments

Comments
 (0)