]> granicus.if.org Git - libevent/commitdiff
Fix unit tests with -DUSE_DEBUG enabled
authorNick Mathewson <nickm@torproject.org>
Fri, 6 Aug 2010 20:36:23 +0000 (16:36 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 6 Aug 2010 20:36:23 +0000 (16:36 -0400)
If you were to enable USE_DEBUG and slog through all 700+ MB of
debugging output, you'd find that one of the unit tests failed,
since it tested the debug logging code, but the string it expected
and the string it logged differed by a tab vs 2 spaces.

test/regress_util.c

index acfdf91be732e1b8aa3e540d4d292809e9f81512..47b5cbfdd56676d600879d62856acb35945aff8e 100644 (file)
@@ -525,9 +525,9 @@ test_evutil_log(void *ptr)
        LOGEQ(_EVENT_LOG_MSG, "Connecting lime to coconut");
        RESET();
 
-       event_debug(("A millisecond passed!  We should log that!"));
+       event_debug(("A millisecond passed! We should log that!"));
 #ifdef USE_DEBUG
-       LOGEQ(_EVENT_LOG_DEBUG, "A millisecond passed!  We should log that!");
+       LOGEQ(_EVENT_LOG_DEBUG, "A millisecond passed! We should log that!");
 #else
        tt_int_op(logsev,==,0);
        tt_ptr_op(logmsg,==,NULL);