options/validate__single_onion test: use new log capture api

I changed the API here in deb294ff53, to be less annoying
to use.
This commit is contained in:
Nick Mathewson
2016-09-13 10:22:34 -04:00
parent 9f0cb5af15
commit 2237478045
+2 -2
View 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);
}