libgit2/tests/core
Carlos Martín Nieto 19d9beb7ff filebuf: remove lockfile upon rename errors
When we have an error renaming the lockfile, we need to make sure
that we remove it upon cleanup. For this, we need to keep track of
whether we opened the file and whether the rename succeeded.

If we did create the lockfile but the rename did not succeed, we
remove the lockfile. This won't protect against all errors, but
the most common ones (target file is open) does get handled.
2015-07-24 23:02:11 +02:00
..
bitvec.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
buffer.c buffer: make use of EINVALID for growing a borrowed buffer 2015-06-24 23:49:10 +02:00
copy.c fileops: allow linking files when copying directory structures 2014-05-28 15:40:22 +02:00
dirent.c git_path_diriter: next shouldn't take path ptr 2015-05-01 12:31:29 -04:00
env.c git__getenv: utf-8 aware env reader 2015-07-02 16:35:43 +00:00
errors.c Make our overflow check look more like gcc/clang's 2015-02-13 09:27:33 -05:00
features.c Rename GIT_SSL to GIT_OPENSSL 2015-04-23 17:39:51 +02:00
filebuf.c filebuf: remove lockfile upon rename errors 2015-07-24 23:02:11 +02:00
ftruncate.c git__getenv: utf-8 aware env reader 2015-07-02 16:35:43 +00:00
hex.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
iconv.c Fixed Xcode 6.1 build warnings 2015-06-15 09:55:12 -07:00
init.c init: return the number of initializations 2014-12-04 20:42:27 -05:00
link.c win32: use NT-prefixed "\\?\" paths 2014-12-16 10:08:43 -06:00
mkdir.c Fix memleak in test/core/mkdir reported by CRTDBG 2015-04-17 10:30:33 -04:00
oid.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
oidmap.c Remove extra semicolon outside of a function 2015-02-15 21:07:05 +01:00
opts.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
path.c Fixed build warnings on Xcode 6.1 2015-06-02 11:49:38 -07:00
pool.c Round up pool alloc sizes for alignment 2014-06-30 12:05:25 -07:00
posix.c Introduce p_utimes and p_futimes 2015-06-16 15:32:02 -04:00
pqueue.c Fix pqueue sort boundary condition bug 2014-03-12 11:21:55 -07:00
rmdir.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
sortedcache.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
stat.c stat: don't remove trailing '/' from root on win32 2015-02-05 12:27:16 -05:00
string.c git__tolower: test that some non-ASCII downcasing isn't 2015-05-29 18:16:51 -04:00
strmap.c Remove extra semicolon outside of a function 2015-02-15 21:07:05 +01:00
strtol.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
structinit.c stash_apply: provide its own options structure 2015-05-11 14:12:39 -04:00
vector.c Some vector utility tweaks 2014-04-17 14:43:45 -07:00
zstream.c Expand zstream tests and fix off-by-one error 2014-01-30 10:00:00 -08:00