]> git.ozlabs.org Git - petitboot/blobdiff - test/parser/test-grub2-empty.c
grub2: fix empty file handling
[petitboot] / test / parser / test-grub2-empty.c
diff --git a/test/parser/test-grub2-empty.c b/test/parser/test-grub2-empty.c
new file mode 100644 (file)
index 0000000..c7ebbeb
--- /dev/null
@@ -0,0 +1,10 @@
+
+#include "parser-test.h"
+
+void run_test(struct parser_test *test)
+{
+       __test_read_conf_data(test, test->ctx->device,
+                       "/grub2/grub.cfg", "", 0);
+       test_run_parser(test, "grub2");
+       check_boot_option_count(test->ctx, 0);
+}