configure: Use AC_GNU_SOURCE
[petitboot] / test / parser / test-grub2-f18-ppc64.c
index 94eb6a48b694cad56fcdb79063c527370e844a99..bf59540437610742c6d9058f645c2da43c125591 100644 (file)
@@ -8,7 +8,9 @@ void run_test(struct parser_test *test)
        struct discover_device *dev;
        int i;
 
-       test_read_conf_file(test, "grub2-f18-ppc64.conf");
+       test_read_conf_file(test, "grub2-f18-ppc64.conf",
+                       "/boot/grub2/grub.cfg");
+
        test_run_parser(test, "grub2");
 
        ctx = test->ctx;
@@ -23,7 +25,7 @@ void run_test(struct parser_test *test)
 
                check_args(opt, "root=/dev/mapper/fedora_ltcfbl8eb-root ro "
                                "rd.lvm.lv=fedora_ltcfbl8eb/swap rd.dm=0 "
-                               "rd.lvm.lv=fedora_ltcfbl8eb/root  rd.md=0 "
+                               "rd.lvm.lv=fedora_ltcfbl8eb/root rd.md=0 "
                                "rd.luks=0 vconsole.keymap=us rhgb quiet");
 
                check_name(opt, i == 0 ?
@@ -38,7 +40,7 @@ void run_test(struct parser_test *test)
 
        /* hotplug a device with a maching UUID, and check that our
         * resources become resolved */
-       dev = test_create_device(ctx, "external");
+       dev = test_create_device(test, "external");
        dev->uuid = "773653a7-660e-490e-9a74-d9fdfc9bbbf6";
        test_hotplug_device(test, dev);