tests: Remove trailing whitespaces

Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
Elyes Haouas 2022-03-04 07:42:12 +01:00 committed by Daniel Kiper
parent b232f6f66e
commit 955a370ccf
5 changed files with 20 additions and 20 deletions

View File

@ -60,7 +60,7 @@ get_test_txt (grub_size_t *sz)
return grub_strdup (testfile); return grub_strdup (testfile);
} }
struct grub_procfs_entry test_txt = struct grub_procfs_entry test_txt =
{ {
.name = "test.txt", .name = "test.txt",
.get_contents = get_test_txt .get_contents = get_test_txt
@ -91,14 +91,14 @@ cmdline_cat_test (void)
} }
grub_procfs_register ("test.txt", &test_txt); grub_procfs_register ("test.txt", &test_txt);
for (i = 0; i < GRUB_TEST_VIDEO_SMALL_N_MODES; i++) for (i = 0; i < GRUB_TEST_VIDEO_SMALL_N_MODES; i++)
{ {
grub_video_capture_start (&grub_test_video_modes[i], grub_video_capture_start (&grub_test_video_modes[i],
grub_video_fbstd_colors, grub_video_fbstd_colors,
grub_test_video_modes[i].number_of_colors); grub_test_video_modes[i].number_of_colors);
grub_terminal_input_fake_sequence ((int []) grub_terminal_input_fake_sequence ((int [])
{ 'c', 'a', 't', ' ', { 'c', 'a', 't', ' ',
'(', 'p', 'r', 'o', 'c', ')', '(', 'p', 'r', 'o', 'c', ')',
'/', 't', 'e', 's', 't', '.', '/', 't', 'e', 's', 't', '.',
't', 'x', 't', '\n', 't', 'x', 't', '\n',

View File

@ -63,7 +63,7 @@ get_test_cfg (grub_size_t *sz)
return grub_strdup (testfile); return grub_strdup (testfile);
} }
struct grub_procfs_entry test_cfg = struct grub_procfs_entry test_cfg =
{ {
.name = "test.cfg", .name = "test.cfg",
.get_contents = get_test_cfg .get_contents = get_test_cfg
@ -73,7 +73,7 @@ struct
{ {
const char *name; const char *name;
const char *var; const char *var;
const char *val; const char *val;
} tests[] = } tests[] =
{ {
{ "gfxterm_menu", NULL, NULL }, { "gfxterm_menu", NULL, NULL },
@ -121,7 +121,7 @@ gfxterm_menu (void)
} }
grub_procfs_register ("test.cfg", &test_cfg); grub_procfs_register ("test.cfg", &test_cfg);
for (j = 0; j < ARRAY_SIZE (tests); j++) for (j = 0; j < ARRAY_SIZE (tests); j++)
for (i = 0; i < GRUB_TEST_VIDEO_SMALL_N_MODES; i++) for (i = 0; i < GRUB_TEST_VIDEO_SMALL_N_MODES; i++)
{ {

View File

@ -99,7 +99,7 @@ arithmetic_right_shift64 (grub_uint64_t v, int s)
if (get_bit64 (v, 63)) if (get_bit64 (v, 63))
for (i -= s; i < 64; i++) for (i -= s; i < 64; i++)
r = set_bit64 (r, i); r = set_bit64 (r, i);
return r; return r;
} }

View File

@ -40,7 +40,7 @@ get_hi_dsa_sig (grub_size_t *sz)
return ret; return ret;
} }
static struct grub_procfs_entry hi_dsa_sig_entry = static struct grub_procfs_entry hi_dsa_sig_entry =
{ {
.name = "hi_dsa.sig", .name = "hi_dsa.sig",
.get_contents = get_hi_dsa_sig .get_contents = get_hi_dsa_sig
@ -57,7 +57,7 @@ get_hi_dsa_pub (grub_size_t *sz)
return ret; return ret;
} }
static struct grub_procfs_entry hi_dsa_pub_entry = static struct grub_procfs_entry hi_dsa_pub_entry =
{ {
.name = "hi_dsa.pub", .name = "hi_dsa.pub",
.get_contents = get_hi_dsa_pub .get_contents = get_hi_dsa_pub
@ -74,7 +74,7 @@ get_hi_rsa_sig (grub_size_t *sz)
return ret; return ret;
} }
static struct grub_procfs_entry hi_rsa_sig_entry = static struct grub_procfs_entry hi_rsa_sig_entry =
{ {
.name = "hi_rsa.sig", .name = "hi_rsa.sig",
.get_contents = get_hi_rsa_sig .get_contents = get_hi_rsa_sig
@ -91,7 +91,7 @@ get_hi_rsa_pub (grub_size_t *sz)
return ret; return ret;
} }
static struct grub_procfs_entry hi_rsa_pub_entry = static struct grub_procfs_entry hi_rsa_pub_entry =
{ {
.name = "hi_rsa.pub", .name = "hi_rsa.pub",
.get_contents = get_hi_rsa_pub .get_contents = get_hi_rsa_pub
@ -104,7 +104,7 @@ get_hi (grub_size_t *sz)
return grub_strdup ("hi\n"); return grub_strdup ("hi\n");
} }
struct grub_procfs_entry hi = struct grub_procfs_entry hi =
{ {
.name = "hi", .name = "hi",
.get_contents = get_hi .get_contents = get_hi
@ -117,7 +117,7 @@ get_hj (grub_size_t *sz)
return grub_strdup ("hj\n"); return grub_strdup ("hj\n");
} }
struct grub_procfs_entry hj = struct grub_procfs_entry hj =
{ {
.name = "hj", .name = "hj",
.get_contents = get_hj .get_contents = get_hj

View File

@ -499,9 +499,9 @@ write_time (void)
cur = grub_util_get_cpu_time_ms (); cur = grub_util_get_cpu_time_ms ();
grub_snprintf (buf, sizeof (buf), "%s_%dx%dx%s:%d: %" PRIuGRUB_UINT64_T " ms\n", grub_snprintf (buf, sizeof (buf), "%s_%dx%dx%s:%d: %" PRIuGRUB_UINT64_T " ms\n",
basename, basename,
capt_mode_info.width, capt_mode_info.width,
capt_mode_info.height, capt_mode_info.height,
grub_video_checksum_get_modename (), ctr, grub_video_checksum_get_modename (), ctr,
cur - prev); cur - prev);
prev = cur; prev = cur;
@ -605,9 +605,9 @@ checksum (void)
if (!checksums || ctr >= nchk) if (!checksums || ctr >= nchk)
{ {
grub_test_assert (0, "Unexpected checksum %s_%dx%dx%s:%d: 0x%x", grub_test_assert (0, "Unexpected checksum %s_%dx%dx%s:%d: 0x%x",
basename, basename,
capt_mode_info.width, capt_mode_info.width,
capt_mode_info.height, capt_mode_info.height,
grub_video_checksum_get_modename (), ctr, crc); grub_video_checksum_get_modename (), ctr, crc);
} }
else if (crc != checksums[ctr]) else if (crc != checksums[ctr])
@ -628,7 +628,7 @@ checksum (void)
} }
#endif #endif
#ifdef GRUB_MACHINE_EMU #ifdef GRUB_MACHINE_EMU
char *name = grub_xasprintf ("%s_%dx%dx%s_%d.bmp", basename, char *name = grub_xasprintf ("%s_%dx%dx%s_%d.bmp", basename,
capt_mode_info.width, capt_mode_info.width,
capt_mode_info.height, capt_mode_info.height,
grub_video_checksum_get_modename (), grub_video_checksum_get_modename (),
@ -785,7 +785,7 @@ grub_test_use_gfxterm (void)
} }
if (gfxterm->init (gfxterm)) if (gfxterm->init (gfxterm))
{ {
grub_test_assert (0, "terminal `%s' failed: %s", "gfxterm", grub_errmsg); grub_test_assert (0, "terminal `%s' failed: %s", "gfxterm", grub_errmsg);
return 1; return 1;
} }