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>
This commit is contained in:
Simon Glass
2024-08-22 07:57:49 -06:00
committed by Tom Rini
parent 725c438c62
commit b073d48e8d
64 changed files with 4 additions and 95 deletions

View File

@@ -28,5 +28,4 @@ static int dm_test_armffa_cmd(struct unit_test_state *uts)
return 0;
}
DM_TEST(dm_test_armffa_cmd, UTF_SCAN_FDT | UTF_CONSOLE_REC);

View File

@@ -244,7 +244,6 @@ static int bdinfo_test_full(struct unit_test_state *uts)
return 0;
}
BDINFO_TEST(bdinfo_test_full, UTF_CONSOLE_REC);
static int bdinfo_test_help(struct unit_test_state *uts)
@@ -266,7 +265,6 @@ static int bdinfo_test_help(struct unit_test_state *uts)
return 0;
}
BDINFO_TEST(bdinfo_test_help, UTF_CONSOLE_REC);
static int bdinfo_test_memory(struct unit_test_state *uts)
@@ -282,7 +280,6 @@ static int bdinfo_test_memory(struct unit_test_state *uts)
return 0;
}
BDINFO_TEST(bdinfo_test_memory, UTF_CONSOLE_REC);
static int bdinfo_test_eth(struct unit_test_state *uts)
@@ -298,7 +295,6 @@ static int bdinfo_test_eth(struct unit_test_state *uts)
return 0;
}
BDINFO_TEST(bdinfo_test_eth, UTF_CONSOLE_REC);
int do_ut_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])

View File

@@ -121,7 +121,6 @@ static int cmd_exit_test(struct unit_test_state *uts)
return 0;
}
EXIT_TEST(cmd_exit_test, UTF_CONSOLE_REC);
int do_ut_exit(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])

View File

@@ -479,5 +479,4 @@ static int dm_test_cmd_mbr(struct unit_test_state *uts)
{
return mbr_test_run(uts);
}
DM_TEST(dm_test_cmd_mbr, UTF_SCAN_FDT | UTF_CONSOLE_REC);

View File

@@ -27,7 +27,6 @@ static int test_pci_mps_safe(struct unit_test_state *uts)
return 0;
}
PCI_MPS_TEST(test_pci_mps_safe, UTF_CONSOLE_REC);
int do_ut_pci_mps(struct cmd_tbl *cmdtp, int flag, int argc,

View File

@@ -36,5 +36,4 @@ static int dm_test_cmd_pinmux_status_pinname(struct unit_test_state *uts)
return 0;
}
DM_TEST(dm_test_cmd_pinmux_status_pinname, UTF_SCAN_PDATA | UTF_SCAN_FDT);

View File

@@ -71,5 +71,4 @@ static int dm_test_pwm_cmd(struct unit_test_state *uts)
return 0;
}
DM_TEST(dm_test_pwm_cmd, UTF_SCAN_PDATA | UTF_SCAN_FDT | UTF_CONSOLE_REC);

View File

@@ -99,5 +99,4 @@ static int dm_test_read_write(struct unit_test_state *uts)
return 0;
}
DM_TEST(dm_test_read_write, UTF_SCAN_FDT | UTF_CONSOLE_REC);

View File

@@ -478,7 +478,6 @@ static int setexpr_test_fmt(struct unit_test_state *uts)
return 0;
}
SETEXPR_TEST(setexpr_test_fmt, UTF_CONSOLE_REC);
#endif

View File

@@ -34,5 +34,4 @@ static int dm_test_cmd_temperature(struct unit_test_state *uts)
return 0;
}
DM_TEST(dm_test_cmd_temperature, UTF_SCAN_FDT | UTF_CONSOLE_REC);

View File

@@ -56,5 +56,4 @@ static int lib_test_hush_echo(struct unit_test_state *uts)
}
return 0;
}
LIB_TEST(lib_test_hush_echo, 0);

View File

@@ -223,5 +223,4 @@ static int net_test_wget(struct unit_test_state *uts)
return 0;
}
LIB_TEST(net_test_wget, 0);