summaryrefslogtreecommitdiff
path: root/tests/test_main.c
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2008-11-03 17:00:54 -0800
committerShawn O. Pearce <spearce@spearce.org>2008-11-03 18:42:54 -0800
commitb923f2f97dc26e981c18da93b98bd5e7b44c3b79 (patch)
tree92142d22d55a2d449d5c563f6e72d827512cdd49 /tests/test_main.c
parent3b8ab0b93539049b0f7c4a09f5dad48a1d89cd49 (diff)
downloadlibgit2-b923f2f97dc26e981c18da93b98bd5e7b44c3b79.tar.gz
Fix Makefile to correctly handle 'make -j4 test'
If we have more than one test build running we cannot use the same file for each test case; instead we need to use a per-test path so there aren't any collisions. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'tests/test_main.c')
-rw-r--r--tests/test_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_main.c b/tests/test_main.c
index a870abdd5..6267cbc52 100644
--- a/tests/test_main.c
+++ b/tests/test_main.c
@@ -27,13 +27,13 @@
#undef BEGIN_TEST
#define BEGIN_TEST(name) extern void testfunc__##name(void);
-#include "test_contents"
+#include TEST_TOC
int main(int argc, char **argv)
{
#undef BEGIN_TEST
#define BEGIN_TEST(name) testfunc__##name();
-#include "test_contents"
+#include TEST_TOC
return 0;
}