return grub_strdup (testfile);
}
-struct grub_procfs_entry test_txt =
+struct grub_procfs_entry test_txt =
{
.name = "test.txt",
.get_contents = get_test_txt
}
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',
return grub_strdup (testfile);
}
-struct grub_procfs_entry test_cfg =
+struct grub_procfs_entry test_cfg =
{
.name = "test.cfg",
.get_contents = get_test_cfg
{
const char *name;
const char *var;
- const char *val;
+ const char *val;
} tests[] =
{
{ "gfxterm_menu", NULL, NULL },
}
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++)
{
if (get_bit64 (v, 63))
for (i -= s; i < 64; i++)
r = set_bit64 (r, i);
-
+
return r;
}
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
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
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
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
return grub_strdup ("hi\n");
}
-struct grub_procfs_entry hi =
+struct grub_procfs_entry hi =
{
.name = "hi",
.get_contents = get_hi
return grub_strdup ("hj\n");
}
-struct grub_procfs_entry hj =
+struct grub_procfs_entry hj =
{
.name = "hj",
.get_contents = get_hj
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;
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])
}
#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 (),
}
if (gfxterm->init (gfxterm))
- {
+ {
grub_test_assert (0, "terminal `%s' failed: %s", "gfxterm", grub_errmsg);
return 1;
}