summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2019-12-13 15:28:57 +1030
committerEdward Thomson <ethomson@edwardthomson.com>2020-01-24 10:16:36 -0600
commitdcd3b815a202add047e8d90799c56da486c50ce0 (patch)
treef83adb4412c580639d3af36e29db31c0db6443f1
parent84b99a95bf7ce8b96db23f7402b205bc74202ae0 (diff)
downloadlibgit2-dcd3b815a202add047e8d90799c56da486c50ce0.tar.gz
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.
-rw-r--r--tests/clar_libgit2_trace.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/tests/clar_libgit2_trace.c b/tests/clar_libgit2_trace.c
index b6c1c1f53..d4d8d2c37 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*/