summaryrefslogtreecommitdiff
path: root/test/lib/test_print.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2024-08-22 07:57:49 -0600
committerTom Rini <trini@konsulko.com>2024-08-26 18:51:49 -0600
commitb073d48e8dd7d178ebd237089be730d15c72ddfc (patch)
treeabc9d5842979f4c495528da9cf08ca2f26ee8554 /test/lib/test_print.c
parent725c438c6271f1870636f61a68d6904dc27a1357 (diff)
test: Drop the blank line before test macros
Most tests don't have this. It helps to keep the test declaration clearly associated with the function it relates to, rather than the next one in the file. Remove the extra blank line and mention this in the docs. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/lib/test_print.c')
-rw-r--r--test/lib/test_print.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/test/lib/test_print.c b/test/lib/test_print.c
index c7fc50a1de1..e356afc22ba 100644
--- a/test/lib/test_print.c
+++ b/test/lib/test_print.c
@@ -41,7 +41,6 @@ static int lib_test_print_freq(struct unit_test_state *uts)
ut_assertok(test_print_freq(uts, 54321987654321, "54321.99 GHz;"));
return 0;
}
-
LIB_TEST(lib_test_print_freq, 0);
static int test_print_size(struct unit_test_state *uts,
@@ -74,5 +73,4 @@ static int lib_test_print_size(struct unit_test_state *uts)
ut_assertok(test_print_size(uts, 54321987654321, "49.4 TiB;"));
return 0;
}
-
LIB_TEST(lib_test_print_size, 0);