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:
parent
b232f6f66e
commit
955a370ccf
@ -60,7 +60,7 @@ get_test_txt (grub_size_t *sz)
|
||||
return grub_strdup (testfile);
|
||||
}
|
||||
|
||||
struct grub_procfs_entry test_txt =
|
||||
struct grub_procfs_entry test_txt =
|
||||
{
|
||||
.name = "test.txt",
|
||||
.get_contents = get_test_txt
|
||||
@ -91,14 +91,14 @@ cmdline_cat_test (void)
|
||||
}
|
||||
|
||||
grub_procfs_register ("test.txt", &test_txt);
|
||||
|
||||
|
||||
for (i = 0; i < GRUB_TEST_VIDEO_SMALL_N_MODES; i++)
|
||||
{
|
||||
grub_video_capture_start (&grub_test_video_modes[i],
|
||||
grub_video_fbstd_colors,
|
||||
grub_test_video_modes[i].number_of_colors);
|
||||
grub_terminal_input_fake_sequence ((int [])
|
||||
{ 'c', 'a', 't', ' ',
|
||||
grub_terminal_input_fake_sequence ((int [])
|
||||
{ 'c', 'a', 't', ' ',
|
||||
'(', 'p', 'r', 'o', 'c', ')',
|
||||
'/', 't', 'e', 's', 't', '.',
|
||||
't', 'x', 't', '\n',
|
||||
|
||||
@ -63,7 +63,7 @@ get_test_cfg (grub_size_t *sz)
|
||||
return grub_strdup (testfile);
|
||||
}
|
||||
|
||||
struct grub_procfs_entry test_cfg =
|
||||
struct grub_procfs_entry test_cfg =
|
||||
{
|
||||
.name = "test.cfg",
|
||||
.get_contents = get_test_cfg
|
||||
@ -73,7 +73,7 @@ struct
|
||||
{
|
||||
const char *name;
|
||||
const char *var;
|
||||
const char *val;
|
||||
const char *val;
|
||||
} tests[] =
|
||||
{
|
||||
{ "gfxterm_menu", NULL, NULL },
|
||||
@ -121,7 +121,7 @@ gfxterm_menu (void)
|
||||
}
|
||||
|
||||
grub_procfs_register ("test.cfg", &test_cfg);
|
||||
|
||||
|
||||
for (j = 0; j < ARRAY_SIZE (tests); j++)
|
||||
for (i = 0; i < GRUB_TEST_VIDEO_SMALL_N_MODES; i++)
|
||||
{
|
||||
|
||||
@ -99,7 +99,7 @@ arithmetic_right_shift64 (grub_uint64_t v, int s)
|
||||
if (get_bit64 (v, 63))
|
||||
for (i -= s; i < 64; i++)
|
||||
r = set_bit64 (r, i);
|
||||
|
||||
|
||||
return r;
|
||||
}
|
||||
|
||||
|
||||
@ -40,7 +40,7 @@ get_hi_dsa_sig (grub_size_t *sz)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static struct grub_procfs_entry hi_dsa_sig_entry =
|
||||
static struct grub_procfs_entry hi_dsa_sig_entry =
|
||||
{
|
||||
.name = "hi_dsa.sig",
|
||||
.get_contents = get_hi_dsa_sig
|
||||
@ -57,7 +57,7 @@ get_hi_dsa_pub (grub_size_t *sz)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static struct grub_procfs_entry hi_dsa_pub_entry =
|
||||
static struct grub_procfs_entry hi_dsa_pub_entry =
|
||||
{
|
||||
.name = "hi_dsa.pub",
|
||||
.get_contents = get_hi_dsa_pub
|
||||
@ -74,7 +74,7 @@ get_hi_rsa_sig (grub_size_t *sz)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static struct grub_procfs_entry hi_rsa_sig_entry =
|
||||
static struct grub_procfs_entry hi_rsa_sig_entry =
|
||||
{
|
||||
.name = "hi_rsa.sig",
|
||||
.get_contents = get_hi_rsa_sig
|
||||
@ -91,7 +91,7 @@ get_hi_rsa_pub (grub_size_t *sz)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static struct grub_procfs_entry hi_rsa_pub_entry =
|
||||
static struct grub_procfs_entry hi_rsa_pub_entry =
|
||||
{
|
||||
.name = "hi_rsa.pub",
|
||||
.get_contents = get_hi_rsa_pub
|
||||
@ -104,7 +104,7 @@ get_hi (grub_size_t *sz)
|
||||
return grub_strdup ("hi\n");
|
||||
}
|
||||
|
||||
struct grub_procfs_entry hi =
|
||||
struct grub_procfs_entry hi =
|
||||
{
|
||||
.name = "hi",
|
||||
.get_contents = get_hi
|
||||
@ -117,7 +117,7 @@ get_hj (grub_size_t *sz)
|
||||
return grub_strdup ("hj\n");
|
||||
}
|
||||
|
||||
struct grub_procfs_entry hj =
|
||||
struct grub_procfs_entry hj =
|
||||
{
|
||||
.name = "hj",
|
||||
.get_contents = get_hj
|
||||
|
||||
@ -499,9 +499,9 @@ write_time (void)
|
||||
|
||||
cur = grub_util_get_cpu_time_ms ();
|
||||
grub_snprintf (buf, sizeof (buf), "%s_%dx%dx%s:%d: %" PRIuGRUB_UINT64_T " ms\n",
|
||||
basename,
|
||||
basename,
|
||||
capt_mode_info.width,
|
||||
capt_mode_info.height,
|
||||
capt_mode_info.height,
|
||||
grub_video_checksum_get_modename (), ctr,
|
||||
cur - prev);
|
||||
prev = cur;
|
||||
@ -605,9 +605,9 @@ checksum (void)
|
||||
if (!checksums || ctr >= nchk)
|
||||
{
|
||||
grub_test_assert (0, "Unexpected checksum %s_%dx%dx%s:%d: 0x%x",
|
||||
basename,
|
||||
basename,
|
||||
capt_mode_info.width,
|
||||
capt_mode_info.height,
|
||||
capt_mode_info.height,
|
||||
grub_video_checksum_get_modename (), ctr, crc);
|
||||
}
|
||||
else if (crc != checksums[ctr])
|
||||
@ -628,7 +628,7 @@ checksum (void)
|
||||
}
|
||||
#endif
|
||||
#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.height,
|
||||
grub_video_checksum_get_modename (),
|
||||
@ -785,7 +785,7 @@ grub_test_use_gfxterm (void)
|
||||
}
|
||||
|
||||
if (gfxterm->init (gfxterm))
|
||||
{
|
||||
{
|
||||
grub_test_assert (0, "terminal `%s' failed: %s", "gfxterm", grub_errmsg);
|
||||
return 1;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user