Skip to content

Commit

Permalink
tests: support CLAR_TRACE_LEVEL
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ethomson committed Jan 24, 2020
1 parent 84b99a9 commit dcd3b81
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions tests/clar_libgit2_trace.c
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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*/

0 comments on commit dcd3b81

Please sign in to comment.