浏览代码

[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>
tags/v1.20.1
Michael Brown 9 年前
父节点
当前提交
b56b482fa3
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      src/tests/settings_test.c

+ 4
- 0
src/tests/settings_test.c 查看文件

@@ -403,3 +403,7 @@ struct self_test settings_test __self_test = {
403 403
 	.name = "settings",
404 404
 	.exec = settings_test_exec,
405 405
 };
406
+
407
+/* Include real IPv6 setting type */
408
+REQUIRING_SYMBOL ( settings_test );
409
+REQUIRE_OBJECT ( ipv6 );

正在加载...
取消
保存