]> git.ozlabs.org Git - petitboot/blobdiff - test/parser/test-yaboot-empty.c
discover/yaboot: Fix assertion failure on empty yaboot files
[petitboot] / test / parser / test-yaboot-empty.c
diff --git a/test/parser/test-yaboot-empty.c b/test/parser/test-yaboot-empty.c
new file mode 100644 (file)
index 0000000..00d08ad
--- /dev/null
@@ -0,0 +1,12 @@
+#include "parser-test.h"
+
+static const char empty[] = "";
+
+void run_test(struct parser_test *test)
+{
+       test_read_conf_data(test, "/etc/yaboot.conf", empty);
+
+       test_run_parser(test, "yaboot");
+
+       check_boot_option_count(test->ctx, 0);
+}