]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-proc-cmdline: run tests only with efi
authorChristian Hesse <mail@eworm.de>
Fri, 7 Jul 2023 13:58:55 +0000 (15:58 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 7 Jul 2023 18:30:10 +0000 (03:30 +0900)
Run these tests only with efi enabled.

src/test/test-proc-cmdline.c

index 6df2bca7876ea00941350176425933372e075f65..2d51dbe4b9ae0781f94c86a7e3220a7529af23fa 100644 (file)
@@ -63,6 +63,7 @@ TEST(proc_cmdline_override) {
         assert_se(strv_equal(args, STRV_MAKE("hoge")));
         args = strv_free(args);
 
+#if ENABLE_EFI
         assert_se(proc_cmdline_get_key("foo_bar", 0, &value) > 0 && streq_ptr(value, "quux"));
         value = mfree(value);
 
@@ -71,6 +72,7 @@ TEST(proc_cmdline_override) {
 
         assert_se(proc_cmdline_get_key("and_one_more", 0, &value) > 0 && streq_ptr(value, "zzz aaa"));
         value = mfree(value);
+#endif
 }
 
 static int parse_item_given(const char *key, const char *value, void *data) {