david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[test] Include IPv6 support when performing settings self-tests

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>
This commit is contained in:
Michael Brown 2015-04-24 14:38:14 +01:00
parent 1b56452121
commit b56b482fa3
1 changed files with 4 additions and 0 deletions

View 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 );