]> granicus.if.org Git - libevent/commitdiff
r16991@catbus: nickm | 2007-12-06 15:05:56 -0500
authorNick Mathewson <nickm@torproject.org>
Sun, 16 Dec 2007 19:33:52 +0000 (19:33 +0000)
committerNick Mathewson <nickm@torproject.org>
Sun, 16 Dec 2007 19:33:52 +0000 (19:33 +0000)
 Move event_init in regress.c to the function that actually messed up the current_base value.

svn:r598

test/regress.c

index ac504f5f5611873d1620c9a373db54180eff1824..993fd8a03bf61501b5eea6226248e8a3cc52dcc4 100644 (file)
@@ -716,6 +716,7 @@ test_free_active_base(void)
        event_base_free(base1);
        test_ok = 1;
        cleanup_test();
+       global_base = event_init();
 }
 
 static void
@@ -738,7 +739,6 @@ test_event_base_new(void)
        event_base_free(base);
        test_ok = 1;
        cleanup_test();
-       event_init();
 }
 
 static void