aboutsummaryrefslogtreecommitdiff
path: root/src/common/compat_libevent.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-06-16 09:50:52 -0400
committerNick Mathewson <nickm@torproject.org>2016-06-16 09:50:52 -0400
commitd1ab295d7b2c4c8bd3da5e1774bc352f8cfe72ab (patch)
tree921913749ae3025817b8f70b1819004231cbffa1 /src/common/compat_libevent.c
parentf986e268505118265fa8fba14a7a5dc1331110c3 (diff)
downloadtor-d1ab295d7b2c4c8bd3da5e1774bc352f8cfe72ab.tar.gz
tor-d1ab295d7b2c4c8bd3da5e1774bc352f8cfe72ab.zip
add LCOV_EXCL for unreachable exit() blocks in src/common
Diffstat (limited to 'src/common/compat_libevent.c')
-rw-r--r--src/common/compat_libevent.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/compat_libevent.c b/src/common/compat_libevent.c
index 96fcec54d4..4469f15ac7 100644
--- a/src/common/compat_libevent.c
+++ b/src/common/compat_libevent.c
@@ -228,8 +228,10 @@ tor_libevent_initialize(tor_libevent_cfg *torcfg)
#endif
if (!the_event_base) {
+ /* LCOV_EXCL_START */
log_err(LD_GENERAL, "Unable to initialize Libevent: cannot continue.");
exit(1);
+ /* LCOV_EXCL_STOP */
}
/* Making this a NOTICE for now so we can link bugs to a libevent versions