提交 df1d25fa 编写于 作者: R Roberto Sassu

Fix compact_tlv test

上级 033114b6
......@@ -114,7 +114,7 @@ static void test_compact_tlv_parser(void **state)
const char compact_tlv_str[] = "compact_tlv-test";
const char generator_str[] = "generator";
const char parser_str[] = "parser";
char path[PATH_MAX];
char path[PATH_MAX], lsm_opt[] = "l:";
LIST_HEAD(generator_lib_head);
LIST_HEAD(parser_lib_head);
LIST_HEAD(head_in);
......@@ -146,6 +146,9 @@ static void test_compact_tlv_parser(void **state)
ret = add_path_struct(path, NULL, &head_in);
assert_return_code(ret, 0);
ret = add_path_struct(lsm_opt, NULL, &head_in);
assert_return_code(ret, 0);
ret = ((generator_func)generator_lib->func)(dirfd, 0, &head_in,
&head_out, COMPACT_FILE,
(1 << COMPACT_MOD_IMMUTABLE),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册