summaryrefslogtreecommitdiff
path: root/src/fileops.h
diff options
context:
space:
mode:
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>2009-03-23 18:47:18 +0000
committerShawn O. Pearce <spearce@spearce.org>2009-03-30 07:18:42 -0700
commit498bc0906810bd43c6fbc73385fecb7f2d04be3a (patch)
tree784536a2a4cb6805d0f64821337ea0b4b20daf0a /src/fileops.h
parent502acd164fb115768d723144da2e7bb5a24891bb (diff)
downloadlibgit2-498bc0906810bd43c6fbc73385fecb7f2d04be3a.tar.gz
t0020-dirent.c: allow test to be run standalone
This test assumed that it was invoked in an empty directory, which is true when run from the Makefile, and so would fail if run standalone. In order to allow the test to work when run from any directory, create a sub directory "dir-walk" and chdir() into this directory while running the tests. Also, add some additional tests. Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'src/fileops.h')
-rw-r--r--src/fileops.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fileops.h b/src/fileops.h
index f2a98a88c..dca7499de 100644
--- a/src/fileops.h
+++ b/src/fileops.h
@@ -44,6 +44,7 @@ extern void gitfo_free_buf(gitfo_buf *obj);
#define gitfo_unlink(p) unlink(p)
#define gitfo_rmdir(p) rmdir(p)
+#define gitfo_chdir(p) chdir(p)
#ifdef GIT_WIN32
#define gitfo_mkdir(p,m) mkdir(p)