]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[test] Include IPv6 support when performing settings self-tests
authorMichael Brown <mcb30@ipxe.org>
Fri, 24 Apr 2015 13:38:14 +0000 (14:38 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 24 Apr 2015 13:41:32 +0000 (14:41 +0100)
The settings self-tests include tests for the "ipv6" setting type.
When IPv6 support is not included, this setting type exists (since it
is referred to by some dual-stack code, such as dns.c) but is
non-functional.

Force IPv6 support to be included within a settings self-test build
using an explicit REQUIRE_OBJECT() macro.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/tests/settings_test.c

index 94484ea061f503f11b42864268db04841a9d56d0..d80a6ea86d8003cff1a6e4ee514b240031439698 100644 (file)
@@ -403,3 +403,7 @@ struct self_test settings_test __self_test = {
        .name = "settings",
        .exec = settings_test_exec,
 };
+
+/* Include real IPv6 setting type */
+REQUIRING_SYMBOL ( settings_test );
+REQUIRE_OBJECT ( ipv6 );