]> git.proxmox.com Git - libgit2.git/blobdiff - tests/online/customcert.c
New upstream version 1.4.3+dfsg.1
[libgit2.git] / tests / online / customcert.c
index c7a0de1a18e6a6c477f91dc4c02318c2f587650d..7932a9e68f35fc52385d2d14b313242f22b0f2cc 100644 (file)
@@ -28,22 +28,22 @@ void test_online_customcert__initialize(void)
        g_repo = NULL;
 
        if (!initialized) {
-               git_buf path = GIT_BUF_INIT, file = GIT_BUF_INIT;
+               git_str path = GIT_STR_INIT, file = GIT_STR_INIT;
                char cwd[GIT_PATH_MAX];
 
                cl_fixture_sandbox(CUSTOM_CERT_ONE_PATH);
                cl_fixture_sandbox(CUSTOM_CERT_TWO_FILE);
 
                cl_must_pass(p_getcwd(cwd, GIT_PATH_MAX));
-               cl_git_pass(git_buf_joinpath(&path, cwd, CUSTOM_CERT_ONE_PATH));
-               cl_git_pass(git_buf_joinpath(&file, cwd, CUSTOM_CERT_TWO_FILE));
+               cl_git_pass(git_str_joinpath(&path, cwd, CUSTOM_CERT_ONE_PATH));
+               cl_git_pass(git_str_joinpath(&file, cwd, CUSTOM_CERT_TWO_FILE));
 
                cl_git_pass(git_libgit2_opts(GIT_OPT_SET_SSL_CERT_LOCATIONS,
                                             file.ptr, path.ptr));
                initialized = true;
 
-               git_buf_dispose(&file);
-               git_buf_dispose(&path);
+               git_str_dispose(&file);
+               git_str_dispose(&path);
        }
 #endif
 }
@@ -66,7 +66,7 @@ void test_online_customcert__file(void)
 {
 #if (GIT_OPENSSL || GIT_MBEDTLS)
        cl_git_pass(git_clone(&g_repo, CUSTOM_CERT_ONE_URL, "./cloned", NULL));
-       cl_assert(git_path_exists("./cloned/master.txt"));
+       cl_assert(git_fs_path_exists("./cloned/master.txt"));
 #endif
 }
 
@@ -74,6 +74,6 @@ void test_online_customcert__path(void)
 {
 #if (GIT_OPENSSL || GIT_MBEDTLS)
        cl_git_pass(git_clone(&g_repo, CUSTOM_CERT_TWO_URL, "./cloned", NULL));
-       cl_assert(git_path_exists("./cloned/master.txt"));
+       cl_assert(git_fs_path_exists("./cloned/master.txt"));
 #endif
 }