summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorMichael Brown2015-04-24 15:38:14 +0200
committerMichael Brown2015-04-24 15:41:32 +0200
commitb56b482fa3b48ae99c44cc60a34979f8780b076a (patch)
tree3da39561a6ddf3607a5d446924660b27d9c324d5 /src/tests
parent[ath9k] Remove confusing logic inversion in an ANI variable (diff)
downloadipxe-b56b482fa3b48ae99c44cc60a34979f8780b076a.tar.gz
ipxe-b56b482fa3b48ae99c44cc60a34979f8780b076a.tar.xz
ipxe-b56b482fa3b48ae99c44cc60a34979f8780b076a.zip
[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>
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/settings_test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tests/settings_test.c b/src/tests/settings_test.c
index 94484ea0..d80a6ea8 100644
--- a/src/tests/settings_test.c
+++ b/src/tests/settings_test.c
@@ -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 );