summaryrefslogtreecommitdiff
path: root/tests/clar_libgit2.h
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2014-05-15 10:56:28 -0700
committerRussell Belfer <rb@github.com>2014-05-15 10:56:28 -0700
commit8487e23797cef0284b592b5ef93eaacbac7196dc (patch)
treeda883f84114eceaf6e69f7b87e16e7aac45bbdad /tests/clar_libgit2.h
parent4af0ef9690e9fdfc81afbeed7039d02a5f191001 (diff)
downloadlibgit2-rb/restore-search-paths.tar.gz
Better search path sandboxingrb/restore-search-paths
There are a number of tests that modify the global or system search paths during the tests. This adds a helper function to make it easier to restore those paths and makes sure that they are getting restored in a manner that preserves test isolation.
Diffstat (limited to 'tests/clar_libgit2.h')
-rw-r--r--tests/clar_libgit2.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/clar_libgit2.h b/tests/clar_libgit2.h
index f84d9e353..da37bd655 100644
--- a/tests/clar_libgit2.h
+++ b/tests/clar_libgit2.h
@@ -139,4 +139,6 @@ void cl_repo_set_string(git_repository *repo, const char *cfg, const char *value
void cl_fake_home(void);
void cl_fake_home_cleanup(void *);
+void cl_sandbox_set_search_path_defaults(void);
+
#endif