#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");
*/
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;
}