already loaded. This saves memory needed for tests,
+2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
+ already loaded. This saves memory needed for tests,
+
2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
* util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
GRUB_MOD_LICENSE ("GPLv3+");
+#define FONT_NAME "Unknown Regular 16"
+
/* Functional test main method. */
static void
videotest_checksum (void)
{
unsigned i;
+ grub_font_t font;
+
+ font = grub_font_get (FONT_NAME);
+ if (font && grub_strcmp (font->name, FONT_NAME) != 0)
+ font = 0;
+ if (!font)
+ font = grub_font_load ("unicode");
- if (grub_font_load ("unicode") == 0)
+ if (!font)
{
grub_test_assert (0, "unicode font not found: %s", grub_errmsg);
return;