test: Drop the blank line before test macros
authorSimon Glass <sjg@chromium.org>
Thu, 22 Aug 2024 13:57:49 +0000 (07:57 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 27 Aug 2024 00:51:49 +0000 (18:51 -0600)
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>
64 files changed:
doc/develop/tests_writing.rst
test/cmd/armffa.c
test/cmd/bdinfo.c
test/cmd/exit.c
test/cmd/mbr.c
test/cmd/pci_mps.c
test/cmd/pinmux.c
test/cmd/pwm.c
test/cmd/rw.c
test/cmd/setexpr.c
test/cmd/temperature.c
test/cmd/test_echo.c
test/cmd/wget.c
test/common/test_autoboot.c
test/dm/axi.c
test/dm/bootcount.c
test/dm/clk.c
test/dm/clk_ccf.c
test/dm/core.c
test/dm/cpu.c
test/dm/dsa.c
test/dm/dsi_host.c
test/dm/eth.c
test/dm/extcon.c
test/dm/ffa.c
test/dm/fpga.c
test/dm/hwspinlock.c
test/dm/i2c.c
test/dm/mdio.c
test/dm/mdio_mux.c
test/dm/memory.c
test/dm/misc.c
test/dm/nop.c
test/dm/nvmxip.c
test/dm/osd.c
test/dm/pci_ep.c
test/dm/pmic.c
test/dm/qfw.c
test/dm/reboot-mode.c
test/dm/regmap.c
test/dm/reset.c
test/dm/scmi.c
test/dm/serial.c
test/dm/sm.c
test/dm/soc.c
test/dm/sysinfo.c
test/dm/tag.c
test/dm/tee.c
test/dm/test-fdt.c
test/env/hashtable.c
test/lib/asn1.c
test/lib/efi_device_path.c
test/lib/efi_image_region.c
test/lib/hexdump.c
test/lib/lmb.c
test/lib/rsa.c
test/lib/sscanf.c
test/lib/string.c
test/lib/test_aes.c
test/lib/test_crc8.c
test/lib/test_crypt.c
test/lib/test_errno_str.c
test/lib/test_print.c
test/lib/uuid.c

index 655eb95..c277c8d 100644 (file)
@@ -228,6 +228,9 @@ Declare the test with::
    }
    DM_TEST(dm_test_uclassname_what, UTF_SCAN_FDT);
 
+Note that the convention is to NOT add a blank line before the macro, so that
+the function it relates to is more obvious.
+
 Replace 'uclassname' with the name of your uclass, if applicable. Replace 'what'
 with what you are testing.
 
index f5d5a1b..d7b076c 100644 (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);
index 973544f..cb88d2e 100644 (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[])
index d4aac0f..e7e454c 100644 (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[])
index fd601ee..e4b694b 100644 (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);
index f7f77e7..755a064 100644 (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,
index 23f9b9a..0b4e001 100644 (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);
index 494f31f..44f52e1 100644 (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);
index 3dcf422..eeda87b 100644 (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);
index f024a33..a4086c9 100644 (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
 
index fc0c95f..b86c7d4 100644 (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);
index cde74eb..ee07ab2 100644 (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);
index b0feb21..1ce167c 100644 (file)
@@ -223,5 +223,4 @@ static int net_test_wget(struct unit_test_state *uts)
 
        return 0;
 }
-
 LIB_TEST(net_test_wget, 0);
index 4ba1dcc..a556cbf 100644 (file)
@@ -91,5 +91,4 @@ static int test_autoboot(struct unit_test_state *uts)
 
        return CMD_RET_SUCCESS;
 }
-
 COMMON_TEST(test_autoboot, 0);
index 1138a46..45c46a1 100644 (file)
@@ -21,7 +21,6 @@ static int dm_test_axi_base(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_axi_base, UTF_SCAN_PDATA | UTF_SCAN_FDT);
 
 /* Test that sandbox PCI bus numbering works correctly */
@@ -33,7 +32,6 @@ static int dm_test_axi_busnum(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_axi_busnum, UTF_SCAN_PDATA | UTF_SCAN_FDT);
 
 /* Test that we can use the store device correctly */
@@ -74,5 +72,4 @@ static int dm_test_axi_store(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_axi_store, UTF_SCAN_PDATA | UTF_SCAN_FDT);
index 4b0a4b3..f66927a 100644 (file)
@@ -35,7 +35,6 @@ static int dm_test_bootcount_rtc(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_bootcount_rtc, UTF_SCAN_PDATA | UTF_SCAN_FDT);
 
 static int dm_test_bootcount_syscon_four_bytes(struct unit_test_state *uts)
@@ -55,7 +54,6 @@ static int dm_test_bootcount_syscon_four_bytes(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_bootcount_syscon_four_bytes,
        UTF_SCAN_PDATA | UTF_SCAN_FDT);
 
@@ -76,6 +74,4 @@ static int dm_test_bootcount_syscon_two_bytes(struct unit_test_state *uts)
 
        return 0;
 }
-
-DM_TEST(dm_test_bootcount_syscon_two_bytes,
-       UTF_SCAN_PDATA | UTF_SCAN_FDT);
+DM_TEST(dm_test_bootcount_syscon_two_bytes, UTF_SCAN_PDATA | UTF_SCAN_FDT);
index 922b053..790968e 100644 (file)
@@ -46,7 +46,6 @@ static int dm_test_clk_base(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_clk_base, UTF_SCAN_FDT);
 
 static int dm_test_clk(struct unit_test_state *uts)
index 95c0f42..ac56f17 100644 (file)
@@ -208,5 +208,4 @@ static int dm_test_clk_ccf(struct unit_test_state *uts)
 
        return 1;
 }
-
 DM_TEST(dm_test_clk_ccf, UTF_SCAN_FDT);
index 5d46784..e0c5b9e 100644 (file)
@@ -188,7 +188,6 @@ static int dm_test_compare_node_name(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_compare_node_name, UTF_SCAN_PDATA);
 
 /* Test that binding with uclass plat setting occurs correctly */
index 885cddb..9b2f90e 100644 (file)
@@ -47,5 +47,4 @@ static int dm_test_cpu(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_cpu, UTF_SCAN_FDT);
index 2537605..c6b4e12 100644 (file)
@@ -56,7 +56,6 @@ static int dm_test_dsa_probe(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_dsa_probe, UTF_SCAN_FDT);
 
 /* This test sends ping requests with the local address through each DSA port
@@ -78,5 +77,4 @@ static int dm_test_dsa(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_dsa, UTF_SCAN_FDT);
index bf3fd99..b927424 100644 (file)
@@ -54,5 +54,4 @@ static int dm_test_dsi_host(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_dsi_host, UTF_SCAN_PDATA | UTF_SCAN_FDT);
index 8479ebd..4674958 100644 (file)
@@ -528,7 +528,6 @@ static int dm_test_eth_async_arp_reply(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_eth_async_arp_reply, UTF_SCAN_FDT);
 
 static int sb_check_ping_reply(struct udevice *dev, void *packet,
@@ -613,7 +612,6 @@ static int dm_test_eth_async_ping_reply(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_eth_async_ping_reply, UTF_SCAN_FDT);
 
 #if IS_ENABLED(CONFIG_IPV6_ROUTER_DISCOVERY)
@@ -659,7 +657,6 @@ static int dm_test_validate_ra(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_validate_ra, 0);
 
 static int dm_test_process_ra(struct unit_test_state *uts)
@@ -698,7 +695,6 @@ static int dm_test_process_ra(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_process_ra, 0);
 
 #endif
index 0f77b3d..91358ab 100644 (file)
@@ -17,5 +17,4 @@ static int dm_test_extcon(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_extcon, UTF_SCAN_FDT);
index 450e3e4..1937d0e 100644 (file)
@@ -197,7 +197,6 @@ static int dm_test_ffa_ack(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_ffa_ack, UTF_SCAN_FDT | UTF_CONSOLE_REC);
 
 static int dm_test_ffa_nack(struct unit_test_state *uts)
@@ -256,5 +255,4 @@ static int dm_test_ffa_nack(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_ffa_nack, UTF_SCAN_FDT | UTF_CONSOLE_REC);
index 28215a3..fe9f287 100644 (file)
@@ -16,5 +16,4 @@ static int dm_test_fpga(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_fpga, UTF_SCAN_FDT);
index d6c786e..58bba52 100644 (file)
@@ -36,5 +36,4 @@ static int dm_test_hwspinlock_base(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_hwspinlock_base, UTF_SCAN_PDATA | UTF_SCAN_FDT);
index 50a2cd0..40f1f26 100644 (file)
@@ -301,7 +301,6 @@ static int dm_test_i2c_addr_offset(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_i2c_addr_offset, UTF_SCAN_PDATA | UTF_SCAN_FDT);
 
 static int dm_test_i2c_reg_clrset(struct unit_test_state *uts)
index 325b212..6760c98 100644 (file)
@@ -53,5 +53,4 @@ static int dm_test_mdio(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_mdio, UTF_SCAN_FDT);
index 864bc0c..866feb2 100644 (file)
@@ -76,5 +76,4 @@ static int dm_test_mdio_mux(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_mdio_mux, UTF_SCAN_FDT);
index 64ceb99..34e64ba 100644 (file)
@@ -17,5 +17,4 @@ static int dm_test_memory(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_memory, UTF_SCAN_FDT);
index 1abc9ee..250885d 100644 (file)
@@ -79,5 +79,4 @@ static int dm_test_misc(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_misc, UTF_SCAN_FDT);
index 7eac167..a6f5f82 100644 (file)
@@ -69,5 +69,4 @@ static int dm_test_nop(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_nop, UTF_FLAT_TREE | UTF_SCAN_FDT);
index 67e19f2..5c455dd 100644 (file)
@@ -142,5 +142,4 @@ static int dm_test_nvmxip(struct unit_test_state *uts)
 
        return CMD_RET_SUCCESS;
 }
-
 DM_TEST(dm_test_nvmxip, UTF_SCAN_FDT | UTF_CONSOLE_REC);
index 5e77d3b..5fb27a3 100644 (file)
@@ -130,7 +130,6 @@ static int dm_test_osd_basics(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_osd_basics, UTF_SCAN_PDATA | UTF_SCAN_FDT);
 
 static int dm_test_osd_extended(struct unit_test_state *uts)
@@ -214,5 +213,4 @@ static int dm_test_osd_extended(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_osd_extended, UTF_SCAN_PDATA | UTF_SCAN_FDT);
index 244fefa..068b72a 100644 (file)
@@ -59,5 +59,4 @@ static int dm_test_pci_ep_base(struct unit_test_state *uts)
        ut_asserteq(sandbox_get_pci_ep_irq_count(bus), 10);
        return 0;
 }
-
 DM_TEST(dm_test_pci_ep_base, UTF_SCAN_PDATA | UTF_SCAN_FDT);
index 146aedf..70dd18f 100644 (file)
@@ -52,7 +52,6 @@ static int dm_test_power_pmic_mc34708_get(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_power_pmic_mc34708_get, UTF_SCAN_FDT);
 
 /* Test PMIC I/O */
index a7dfe8f..b6be5c5 100644 (file)
@@ -23,7 +23,6 @@ static int dm_test_qfw_cpus(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_qfw_cpus, UTF_SCAN_PDATA);
 
 static int dm_test_qfw_firmware_list(struct unit_test_state *uts)
@@ -37,5 +36,4 @@ static int dm_test_qfw_firmware_list(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_qfw_firmware_list, UTF_SCAN_PDATA);
index c594909..9a3b2bf 100644 (file)
@@ -39,7 +39,6 @@ static int dm_test_reboot_mode_gpio(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_reboot_mode_gpio,
        UTF_PROBE_TEST | UTF_SCAN_FDT | UTF_FLAT_TREE);
 
@@ -65,6 +64,5 @@ static int dm_test_reboot_mode_rtc(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_reboot_mode_rtc,
        UTF_PROBE_TEST | UTF_SCAN_FDT | UTF_FLAT_TREE);
index 436b711..5024b47 100644 (file)
@@ -157,7 +157,6 @@ static int dm_test_regmap_getset(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_regmap_getset, UTF_SCAN_PDATA | UTF_SCAN_FDT);
 
 /* Read polling test */
index 99f46fe..dceb6a1 100644 (file)
@@ -66,7 +66,6 @@ static int dm_test_reset_base(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_reset_base, UTF_SCAN_FDT);
 
 static int dm_test_reset(struct unit_test_state *uts)
index 93e275e..5c540fc 100644 (file)
@@ -202,7 +202,6 @@ static int dm_test_scmi_base(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_scmi_base, UTF_SCAN_FDT);
 
 static int dm_test_scmi_cmd(struct unit_test_state *uts)
@@ -282,7 +281,6 @@ static int dm_test_scmi_cmd(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_scmi_cmd, UTF_SCAN_FDT);
 
 static int dm_test_scmi_power_domains(struct unit_test_state *uts)
@@ -388,7 +386,6 @@ static int dm_test_scmi_power_domains(struct unit_test_state *uts)
 
        return release_sandbox_scmi_test_devices(uts, dev);
 }
-
 DM_TEST(dm_test_scmi_power_domains, UTF_SCAN_FDT);
 
 static int dm_test_scmi_clocks(struct unit_test_state *uts)
index 456799a..4acb14f 100644 (file)
@@ -87,5 +87,4 @@ static int dm_test_serial(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_serial, UTF_SCAN_FDT);
index 3098571..cf4dab6 100644 (file)
@@ -60,5 +60,4 @@ static int dm_test_sm(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_sm, UTF_SCAN_FDT);
index c01b062..a6b82e5 100644 (file)
@@ -115,5 +115,4 @@ static int dm_test_soc(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_soc, UTF_SCAN_FDT);
index adb2f36..6c0d2d7 100644 (file)
@@ -59,5 +59,4 @@ static int dm_test_sysinfo(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_sysinfo, UTF_SCAN_PDATA | UTF_SCAN_FDT);
index bce8a35..1412171 100644 (file)
@@ -29,7 +29,6 @@ static int dm_test_tag_ptr(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_tag_ptr, 0);
 
 /*
@@ -49,7 +48,6 @@ static int dm_test_tag_val(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_tag_val, 0);
 
 /*
@@ -63,7 +61,6 @@ static int dm_test_tag_inval(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_tag_inval, 0);
 
 /*
@@ -79,5 +76,4 @@ static int dm_test_tag_del_all(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_tag_del_all, 0);
index fb890c1..b56c982 100644 (file)
@@ -215,5 +215,4 @@ out:
 
        return rc;
 }
-
 DM_TEST(dm_test_tee, UTF_SCAN_FDT);
index d9c4931..af8cd61 100644 (file)
@@ -1224,5 +1224,4 @@ static int dm_test_read_resource(struct unit_test_state *uts)
 
        return 0;
 }
-
 DM_TEST(dm_test_read_resource, UTF_SCAN_PDATA | UTF_SCAN_FDT);
index ccdf013..16e4935 100644 (file)
@@ -101,7 +101,6 @@ static int env_test_htab_fill(struct unit_test_state *uts)
        hdestroy_r(&htab);
        return 0;
 }
-
 ENV_TEST(env_test_htab_fill, 0);
 
 /* Fill the hashtable up halfway an repeateadly delete/create elements
@@ -122,5 +121,4 @@ static int env_test_htab_deletes(struct unit_test_state *uts)
        hdestroy_r(&htab);
        return 0;
 }
-
 ENV_TEST(env_test_htab_deletes, 0);
index 4842b70..f0c7819 100644 (file)
@@ -135,7 +135,6 @@ static int lib_asn1_x509(struct unit_test_state *uts)
 
        return CMD_RET_SUCCESS;
 }
-
 LIB_TEST(lib_asn1_x509, 0);
 #endif /* CONFIG_X509_CERTIFICATE_PARSER */
 
@@ -324,7 +323,6 @@ static int lib_asn1_pkcs7(struct unit_test_state *uts)
 
        return CMD_RET_SUCCESS;
 }
-
 LIB_TEST(lib_asn1_pkcs7, 0);
 #endif /* CONFIG_PKCS7_MESSAGE_PARSER */
 
@@ -386,6 +384,5 @@ static int lib_asn1_pkey(struct unit_test_state *uts)
 
        return CMD_RET_SUCCESS;
 }
-
 LIB_TEST(lib_asn1_pkey, 0);
 #endif /* CONFIG_RSA_PUBLIC_KEY_PARSER */
index 290c876..5cc001e 100644 (file)
@@ -45,5 +45,4 @@ static int lib_test_efi_dp_check_length(struct unit_test_state *uts)
 
        return 0;
 }
-
 LIB_TEST(lib_test_efi_dp_check_length, 0);
index 3ca49dc..2102539 100644 (file)
@@ -65,7 +65,6 @@ static int lib_test_efi_image_region_add(struct unit_test_state *uts)
 
        return 0;
 }
-
 LIB_TEST(lib_test_efi_image_region_add, 0);
 
 static int lib_test_efi_image_region_sort(struct unit_test_state *uts)
@@ -158,5 +157,4 @@ static int lib_test_efi_image_region_sort(struct unit_test_state *uts)
 
        return 0;
 }
-
 LIB_TEST(lib_test_efi_image_region_sort, 0);
index d531a83..7b4592d 100644 (file)
@@ -31,7 +31,6 @@ static int lib_test_hex_to_bin(struct unit_test_state *uts)
 
        return 0;
 }
-
 LIB_TEST(lib_test_hex_to_bin, 0);
 
 static int lib_test_hex2bin(struct unit_test_state *uts)
@@ -61,7 +60,6 @@ static int lib_test_hex2bin(struct unit_test_state *uts)
 
        return 0;
 }
-
 LIB_TEST(lib_test_hex2bin, 0);
 
 static int lib_test_bin2hex(struct unit_test_state *uts)
@@ -91,5 +89,4 @@ static int lib_test_bin2hex(struct unit_test_state *uts)
 
        return 0;
 }
-
 LIB_TEST(lib_test_bin2hex, 0);
index 4b5b6e5..3c66138 100644 (file)
@@ -360,7 +360,6 @@ static int lib_test_lmb_noreserved(struct unit_test_state *uts)
        /* simulate 512 MiB RAM beginning at 1.5GiB */
        return test_noreserved(uts, 0xE0000000, 4, 1);
 }
-
 LIB_TEST(lib_test_lmb_noreserved, 0);
 
 static int lib_test_lmb_unaligned_size(struct unit_test_state *uts)
index 40f7001..129d03a 100644 (file)
@@ -158,7 +158,6 @@ static int lib_rsa_verify_valid(struct unit_test_state *uts)
 
        return CMD_RET_SUCCESS;
 }
-
 LIB_TEST(lib_rsa_verify_valid, 0);
 
 /**
@@ -200,6 +199,5 @@ static int lib_rsa_verify_invalid(struct unit_test_state *uts)
 
        return CMD_RET_SUCCESS;
 }
-
 LIB_TEST(lib_rsa_verify_invalid, 0);
 #endif /* RSA_VERIFY_WITH_PKEY */
index 9fe5521..3a2ec8f 100644 (file)
@@ -169,5 +169,4 @@ static int lib_sscanf(struct unit_test_state *uts)
 
        return 0;
 }
-
 LIB_TEST(lib_sscanf, 0);
index d08dbca..8d22f3f 100644 (file)
@@ -93,7 +93,6 @@ static int lib_memset(struct unit_test_state *uts)
        }
        return 0;
 }
-
 LIB_TEST(lib_memset, 0);
 
 /**
@@ -157,7 +156,6 @@ static int lib_memcpy(struct unit_test_state *uts)
        }
        return 0;
 }
-
 LIB_TEST(lib_memcpy, 0);
 
 /**
@@ -192,7 +190,6 @@ static int lib_memmove(struct unit_test_state *uts)
        }
        return 0;
 }
-
 LIB_TEST(lib_memmove, 0);
 
 /** lib_memdup() - unit test for memdup() */
index cfd9d8c..6d9068c 100644 (file)
@@ -163,5 +163,4 @@ static int lib_test_aes(struct unit_test_state *uts)
 
        return ret;
 }
-
 LIB_TEST(lib_test_aes, 0);
index 0dac97b..52be2dc 100644 (file)
@@ -25,5 +25,4 @@ static int lib_crc8(struct unit_test_state *uts) {
 
        return 0;
 }
-
 LIB_TEST(lib_crc8, 0);
index dcdadd9..b6dd5f0 100644 (file)
@@ -59,5 +59,4 @@ static int lib_crypt(struct unit_test_state *uts)
 
        return CMD_RET_SUCCESS;
 }
-
 LIB_TEST(lib_crypt, 0);
index 67f7644..967ecfd 100644 (file)
@@ -41,5 +41,4 @@ static int lib_errno_str(struct unit_test_state *uts)
 
        return 0;
 }
-
 LIB_TEST(lib_errno_str, 0);
index c7fc50a..e356afc 100644 (file)
@@ -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);
index 0914f2c..8fe65db 100644 (file)
@@ -36,5 +36,4 @@ static int lib_test_uuid_to_le(struct unit_test_state *uts)
 
        return 0;
 }
-
 LIB_TEST(lib_test_uuid_to_le, 0);