]> git.proxmox.com Git - libgit2.git/blobdiff - tests/index/nsec.c
New upstream version 1.4.3+dfsg.1
[libgit2.git] / tests / index / nsec.c
index ea8a267431ece454a0deb77a132ae6c55a203159..3efd855a7e6d1772fc4c615cb457742f246235f0 100644 (file)
@@ -9,7 +9,7 @@ static git_index *repo_index;
 
 #define TEST_REPO_PATH "nsecs"
 
-// Fixture setup and teardown
+/* Fixture setup and teardown */
 void test_index_nsec__initialize(void)
 {
        repo = cl_git_sandbox_init("nsecs");
@@ -47,16 +47,16 @@ static bool try_create_file_with_nsec_timestamp(const char *path)
  */
 static bool should_expect_nsecs(void)
 {
-       git_buf nsec_path = GIT_BUF_INIT;
+       git_str nsec_path = GIT_STR_INIT;
        bool expect;
 
-       git_buf_joinpath(&nsec_path, clar_sandbox_path(), "nsec_test");
+       git_str_joinpath(&nsec_path, clar_sandbox_path(), "nsec_test");
 
        expect = try_create_file_with_nsec_timestamp(nsec_path.ptr);
 
-       p_unlink(nsec_path.ptr);
+       cl_must_pass(p_unlink(nsec_path.ptr));
 
-       git_buf_free(&nsec_path);
+       git_str_dispose(&nsec_path);
 
        return expect;
 }