]> git.proxmox.com Git - libgit2.git/commit - tests/attr/ignore.c
Improve handling of fake home directory
authorRussell Belfer <rb@github.com>
Thu, 1 May 2014 21:47:33 +0000 (14:47 -0700)
committerRussell Belfer <rb@github.com>
Fri, 2 May 2014 16:21:33 +0000 (09:21 -0700)
commit0f603132bc2397bf8308e72651c56cb7dbd3ad70
tree0ea052ae8023fc0929e8af5e08422bd336b946e1
parentbc91347b5894c98964a12c6637d5ca91d9723b42
Improve handling of fake home directory

There are a few tests that set up a fake home directory and a
fake GLOBAL search path so that we can test things in global
ignore or attribute or config files.  This cleans up that code to
work more robustly even if there is a test failure.  This also
fixes some valgrind warnings where scanning search paths for
separators could end up doing a little bit of sketchy data access
when coming to the end of search list.
src/config.c
src/sysdir.c
tests/attr/ignore.c
tests/clar_libgit2.c
tests/clar_libgit2.h
tests/config/global.c
tests/status/ignore.c