mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
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:
@@ -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);
|
||||
|
||||
@@ -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[])
|
||||
|
||||
@@ -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[])
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -56,5 +56,4 @@ static int lib_test_hush_echo(struct unit_test_state *uts)
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
LIB_TEST(lib_test_hush_echo, 0);
|
||||
|
||||
@@ -223,5 +223,4 @@ static int net_test_wget(struct unit_test_state *uts)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
LIB_TEST(net_test_wget, 0);
|
||||
|
||||
Reference in New Issue
Block a user