summaryrefslogtreecommitdiff
path: root/scripts/test
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-04-25 10:59:19 -0400
committerNick Mathewson <nickm@torproject.org>2017-04-25 10:59:19 -0400
commit43db91bd87a6f197a93285a87df473616cc1f6c2 (patch)
tree681c24e9721d4f0eaac754bdcc55c5b28546625a /scripts/test
parent7a37cbbea33896da54ea4785d8b08c3e5752dcd2 (diff)
downloadtor-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/test')
-rwxr-xr-xscripts/test/cov-exclude6
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;
+}
+