mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Update tests to handle new interpretation of quiet_level.
Two things needed to be changed. First, we used to set quiet_level to the default (QUIET_NONE) when running tests, since we would not call anything that acted based upon it. But since we sometimes call options_init_logs(), we need to pre-set quiet_level to QUIET_SILENT in the logs so that we don't add the default logs. This did not cause test failure: just unwanted logs. Second, we had a test that checked whether options_validate was messing with options->Logs correctly. Since options_validate no longer messes with the logs, we no longer want a test for this.
This commit is contained in:
@@ -272,6 +272,9 @@ main(int c, const char **v)
|
||||
|
||||
control_initialize_event_queue();
|
||||
|
||||
/* Don't add default logs; the tests manage their own. */
|
||||
quiet_level = QUIET_SILENT;
|
||||
|
||||
for (i_out = i = 1; i < c; ++i) {
|
||||
if (!strcmp(v[i], "--warn")) {
|
||||
loglevel = LOG_WARN;
|
||||
|
||||
Reference in New Issue
Block a user