mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 13:53:31 +01:00
Teach cov-exclude to detect runaway LCOV_EXCL_START lines
Also, fix two instances of runaway LCOV_EXCL_START lines.
This commit is contained in:
parent
7a37cbbea3
commit
43db91bd87
@ -26,3 +26,9 @@ if ($excluding or $exclude_this) {
|
||||
s{^\s*\#\#+:}{ x:};
|
||||
s{^ (\s*)(\d+):}{$1!!!$2:};
|
||||
}
|
||||
|
||||
if (eof and $excluding) {
|
||||
warn "Runaway LCOV_EXCL_START in $ARGV";
|
||||
$excluding = 0;
|
||||
}
|
||||
|
||||
|
@ -1198,7 +1198,7 @@ tor_addr_hash(const tor_addr_t *addr)
|
||||
/* LCOV_EXCL_START */
|
||||
tor_fragile_assert();
|
||||
return 0;
|
||||
/* LCOV_EXCL_END */
|
||||
/* LCOV_EXCL_STOP */
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -159,7 +159,7 @@ onion_skin_TAP_server_handshake(
|
||||
* big. That should be impossible. */
|
||||
log_info(LD_GENERAL, "crypto_dh_get_public failed.");
|
||||
goto err;
|
||||
/* LCOV_EXCP_STOP */
|
||||
/* LCOV_EXCL_STOP */
|
||||
}
|
||||
|
||||
key_material_len = DIGEST_LEN+key_out_len;
|
||||
|
Loading…
Reference in New Issue
Block a user