]> git.proxmox.com Git - libgit2.git/blobdiff - tests/attr/lookup.c
New upstream version 1.1.0+dfsg.1
[libgit2.git] / tests / attr / lookup.c
index 71e87cbae58b2510f838a2c66de8181891fbbf2d..6063468cb46502144a188c6a752fb5489b43ca6e 100644 (file)
@@ -19,7 +19,7 @@ void test_attr_lookup__simple(void)
        cl_assert(!path.is_dir);
 
        cl_git_pass(git_attr_file__lookup_one(file,&path,"binary",&value));
-       cl_assert(GIT_ATTR_TRUE(value));
+       cl_assert(GIT_ATTR_IS_TRUE(value));
 
        cl_git_pass(git_attr_file__lookup_one(file,&path,"missing",&value));
        cl_assert(!value);
@@ -252,7 +252,7 @@ void test_attr_lookup__from_buffer(void)
 
        cl_git_pass(git_attr_file__new(&file, NULL, 0));
 
-       cl_git_pass(git_attr_file__parse_buffer(NULL, file, "a* foo\nabc bar\n* baz"));
+       cl_git_pass(git_attr_file__parse_buffer(NULL, file, "a* foo\nabc bar\n* baz", true));
 
        cl_assert(file->rules.length == 3);