]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
options/validate__single_onion test: use new log capture api
authorNick Mathewson <nickm@torproject.org>
Tue, 13 Sep 2016 14:22:34 +0000 (10:22 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 13 Sep 2016 14:22:34 +0000 (10:22 -0400)
I changed the API here in deb294ff532d074a7d4, to be less annoying
to use.

src/test/test_options.c

index 9ce7c420a0b46f3872730aa015494794f33895b8..1439f9530554e259e38bd789a461ae9bfee7163b 100644 (file)
@@ -2756,7 +2756,7 @@ test_options_validate__single_onion(void *ignored)
   int ret;
   char *msg;
   options_test_data_t *tdata = NULL;
-  int previous_log = setup_capture_of_logs(LOG_WARN);
+  setup_capture_of_logs(LOG_WARN);
 
   /* Test that HiddenServiceSingleHopMode must come with
    * HiddenServiceNonAnonymousMode */
@@ -2892,7 +2892,7 @@ test_options_validate__single_onion(void *ignored)
 
  done:
   policies_free_all();
-  teardown_capture_of_logs(previous_log);
+  teardown_capture_of_logs();
   free_options_test_data(tdata);
   tor_free(msg);
 }