Commit dcd3b815a202add047e8d90799c56da486c50ce0

Edward Thomson 2019-12-13T15:28:57

tests: support CLAR_TRACE_LEVEL The CLAR_TRACE_LEVEL environment variable was supported when building with GIT_TRACE. Now we always build with GIT_TRACE, but that variable is not provided to tests. Simply support clar tracing always.

diff --git a/tests/clar_libgit2_trace.c b/tests/clar_libgit2_trace.c
index b6c1c1f..d4d8d2c 100644
--- a/tests/clar_libgit2_trace.c
+++ b/tests/clar_libgit2_trace.c
@@ -1,7 +1,4 @@
 #include "clar_libgit2_trace.h"
-
-#if defined(GIT_TRACE)
-
 #include "clar_libgit2.h"
 #include "clar_libgit2_timer.h"
 #include "trace.h"
@@ -264,15 +261,3 @@ void cl_global_trace_disable(void)
 	 * once.
 	 */
 }
-
-#else /* GIT_TRACE */
-
-void cl_global_trace_register(void)
-{
-}
-
-void cl_global_trace_disable(void)
-{
-}
-
-#endif /* GIT_TRACE*/