From c08b6a7037e4dd21f08a2fc8d40db51c7b4e051b Mon Sep 17 00:00:00 2001 From: Jakub Czapiga Date: Mon, 10 Jan 2022 13:36:47 +0000 Subject: tests: Fix tests code and comments style This patch applies clang-format settings to most of tests files. Some files were fixed "by-hand" to exclude some lines, which whould be less readable after automatic style fixing. Moreover, some comments (mostly in tests/lib/edid-test.c) were adjusted to match coreboot coding style guidelines. Change-Id: I69f25a7b6d8265800c731754e2fbb2255f482134 Signed-off-by: Jakub Czapiga Reviewed-on: https://review.coreboot.org/c/coreboot/+/60970 Tested-by: build bot (Jenkins) Reviewed-by: Paul Fagerburg --- tests/device/ddr4-test.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tests/device/ddr4-test.c') diff --git a/tests/device/ddr4-test.c b/tests/device/ddr4-test.c index 3ee1e79f1d..d5d7ee7d36 100644 --- a/tests/device/ddr4-test.c +++ b/tests/device/ddr4-test.c @@ -33,9 +33,7 @@ static void ddr4_speed_mhz_to_mts_test(void **state) int main(void) { - const struct CMUnitTest tests[] = { - cmocka_unit_test(ddr4_speed_mhz_to_mts_test) - }; + const struct CMUnitTest tests[] = {cmocka_unit_test(ddr4_speed_mhz_to_mts_test)}; return cb_run_group_tests(tests, NULL, NULL); } -- cgit v1.2.3