diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-08-31 13:22:07 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-08-31 13:22:07 -0400 |
commit | 273290d4fee31857d689ef5286e44dd268a9bd65 (patch) | |
tree | ee6f76cedd02077e753d761b466c99aa226fa578 /src | |
parent | 69dce0903187abc0a48606884c88588d276086d7 (diff) | |
download | tor-273290d4fee31857d689ef5286e44dd268a9bd65.tar.gz tor-273290d4fee31857d689ef5286e44dd268a9bd65.zip |
Always log [bug] warnings from the unit tests.
We should consider them bugs. If they are happening intentionally,
we should use the log_test_helpers code to capture and suppress
them. But having them off-by-default has potential to cause
programming errors.
Diffstat (limited to 'src')
-rw-r--r-- | src/test/testing_common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/testing_common.c b/src/test/testing_common.c index ea9366305c..e3fe87cb43 100644 --- a/src/test/testing_common.c +++ b/src/test/testing_common.c @@ -272,6 +272,8 @@ main(int c, const char **v) log_severity_list_t s; memset(&s, 0, sizeof(s)); set_log_severity_config(loglevel, LOG_ERR, &s); + /* ALWAYS log bug warnings. */ + s.masks[LOG_WARN-LOG_ERR] |= LD_BUG; add_stream_log(&s, "", fileno(stdout)); } |