diff options
author | Russell Belfer <arrbee@arrbee.com> | 2012-01-17 15:49:47 -0800 |
---|---|---|
committer | Russell Belfer <arrbee@arrbee.com> | 2012-01-17 15:49:47 -0800 |
commit | 1744fafec05d8fa3036a43f5e390c790810b05a5 (patch) | |
tree | b87f0616dd832ec66cc2450b5751b70d468a350e /tests-clay | |
parent | d1317f1b69cafb328ca9b263b2b71cddeb2290be (diff) | |
download | libgit2-1744fafec05d8fa3036a43f5e390c790810b05a5.tar.gz |
Move path related functions from fileops to path
This takes all of the functions that look up simple data about
paths (such as `git_futils_isdir`) and moves them over to path.h
(becoming `git_path_isdir`). This leaves fileops.h just with
functions that actually manipulate the filesystem or look at
the file contents in some way.
As part of this, the dir.h header which is really just for win32
support was moved into win32 (with some minor changes).
Diffstat (limited to 'tests-clay')
-rw-r--r-- | tests-clay/config/stress.c | 2 | ||||
-rw-r--r-- | tests-clay/core/dirent.c | 12 | ||||
-rw-r--r-- | tests-clay/core/filebuf.c | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/tests-clay/config/stress.c b/tests-clay/config/stress.c index b48ed399d..3d3729c41 100644 --- a/tests-clay/config/stress.c +++ b/tests-clay/config/stress.c @@ -27,7 +27,7 @@ void test_config_stress__dont_break_on_invalid_input(void) struct git_config_file *file; git_config *config; - cl_git_pass(git_futils_exists("git-test-config")); + cl_git_pass(git_path_exists("git-test-config")); cl_git_pass(git_config_file__ondisk(&file, "git-test-config")); cl_git_pass(git_config_new(&config)); cl_git_pass(git_config_add_file(config, file, 0)); diff --git a/tests-clay/core/dirent.c b/tests-clay/core/dirent.c index 4f55368ac..c9ab1c103 100644 --- a/tests-clay/core/dirent.c +++ b/tests-clay/core/dirent.c @@ -115,7 +115,7 @@ void test_core_dirent__dont_traverse_dot(void) cl_set_cleanup(&dirent_cleanup__cb, &dot); setup(&dot); - cl_git_pass(git_futils_direach(&dot.path, + cl_git_pass(git_path_direach(&dot.path, one_entry, &dot)); @@ -141,7 +141,7 @@ void test_core_dirent__traverse_subfolder(void) cl_set_cleanup(&dirent_cleanup__cb, &sub); setup(&sub); - cl_git_pass(git_futils_direach(&sub.path, + cl_git_pass(git_path_direach(&sub.path, one_entry, &sub)); @@ -161,7 +161,7 @@ void test_core_dirent__traverse_slash_terminated_folder(void) cl_set_cleanup(&dirent_cleanup__cb, &sub_slash); setup(&sub_slash); - cl_git_pass(git_futils_direach(&sub_slash.path, + cl_git_pass(git_path_direach(&sub_slash.path, one_entry, &sub_slash)); @@ -184,14 +184,14 @@ void test_core_dirent__dont_traverse_empty_folders(void) cl_set_cleanup(&dirent_cleanup__cb, &empty); setup(&empty); - cl_git_pass(git_futils_direach(&empty.path, + cl_git_pass(git_path_direach(&empty.path, one_entry, &empty)); check_counts(&empty); /* make sure callback not called */ - cl_git_pass(git_futils_direach(&empty.path, + cl_git_pass(git_path_direach(&empty.path, dont_call_me, &empty)); } @@ -216,7 +216,7 @@ void test_core_dirent__traverse_weird_filenames(void) cl_set_cleanup(&dirent_cleanup__cb, &odd); setup(&odd); - cl_git_pass(git_futils_direach(&odd.path, + cl_git_pass(git_path_direach(&odd.path, one_entry, &odd)); diff --git a/tests-clay/core/filebuf.c b/tests-clay/core/filebuf.c index 5b233fe8e..6a87902fe 100644 --- a/tests-clay/core/filebuf.c +++ b/tests-clay/core/filebuf.c @@ -14,7 +14,7 @@ void test_core_filebuf__0(void) cl_must_pass(p_close(fd)); cl_git_fail(git_filebuf_open(&file, test, 0)); - cl_git_pass(git_futils_exists(testlock)); + cl_git_pass(git_path_exists(testlock)); cl_must_pass(p_unlink(testlock)); } |