libgit2/tests
Shawn O. Pearce a1d34bc000 Support building on Mac OS X by using pthread_getspecific for TLS
The Mach-O format does not permit gcc to implement the __thread
TLS specification, so we must instead emulate it using a single
int cell allocated from memory and stored inside of the thread
specific data associated with the current pthread.

What makes this tricky is git_errno must be a valid lvalue, so
we really need to return a pointer to the caller and deference it
as part of the git_errno macro.

The GCC-specific __attribute__((constructor)) extension is used
to ensure the pthread_key_t is allocated before any Git functions
are executed in the library, as this is necessary to access our
thread specific storage.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
2008-12-30 21:56:11 -08:00
..
.gitignore Fix Makefile to correctly handle 'make -j4 test' 2008-11-03 18:42:54 -08:00
t0000-errno.c Support building on Mac OS X by using pthread_getspecific for TLS 2008-12-30 21:56:11 -08:00
t0000-hash.c Add some routines for SHA1 hash computation 2008-12-30 07:48:10 -08:00
t0000-obj-hash.c Add a routine to determine a git_oid given an git_obj 2008-12-30 07:52:55 -08:00
t0000-obj.c Add some git_otype string conversion and testing routines 2008-12-10 11:49:06 -08:00
t0000-oid.c Add routines to convert git_oid to hex strings 2008-12-02 10:02:29 -08:00
t0000-read1.c Implement git_odb__read_loose() 2008-12-19 07:23:00 -08:00
t0000-read2.c Implement git_odb__read_loose() 2008-12-19 07:23:00 -08:00
test_lib.c Create a basic test suite for the library and test oid functions 2008-11-01 18:24:39 -07:00
test_lib.h Add git_oid_cpy, git_oid_cmp as inline functions 2008-11-03 18:43:04 -08:00
test_main.c Change test_main to run a single test case out of the suite 2008-11-03 18:42:54 -08:00