diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-04-25 10:59:19 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-04-25 10:59:19 -0400 |
commit | 43db91bd87a6f197a93285a87df473616cc1f6c2 (patch) | |
tree | 681c24e9721d4f0eaac754bdcc55c5b28546625a /scripts | |
parent | 7a37cbbea33896da54ea4785d8b08c3e5752dcd2 (diff) | |
download | tor-43db91bd87a6f197a93285a87df473616cc1f6c2.tar.gz tor-43db91bd87a6f197a93285a87df473616cc1f6c2.zip |
Teach cov-exclude to detect runaway LCOV_EXCL_START lines
Also, fix two instances of runaway LCOV_EXCL_START lines.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/test/cov-exclude | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/test/cov-exclude b/scripts/test/cov-exclude index 5117f11ec4..5cb9b1282d 100755 --- a/scripts/test/cov-exclude +++ b/scripts/test/cov-exclude @@ -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; +} + |