aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/regress.pl
diff options
context:
space:
mode:
Diffstat (limited to 'regress/regress.pl')
-rwxr-xr-xregress/regress.pl9
1 files changed, 6 insertions, 3 deletions
diff --git a/regress/regress.pl b/regress/regress.pl
index 8ee2640d..d275a7ba 100755
--- a/regress/regress.pl
+++ b/regress/regress.pl
@@ -1,6 +1,6 @@
#!/usr/bin/env perl
#
-# $Id: regress.pl,v 1.11 2019/07/01 22:56:26 schwarze Exp $
+# $Id: regress.pl,v 1.12 2019/09/03 18:19:37 schwarze Exp $
#
# Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org>
#
@@ -86,8 +86,12 @@ sub syshtml ($@) {
if (!$state && s/.*<math class="eqn">//) {
$state = 'math';
next unless length;
- } elsif (/^BEGINTEST/) {
+ } elsif (/BEGINTEST/) {
$state = 'other';
+ next;
+ } elsif (/ENDTEST/) {
+ $state = 0;
+ next;
}
if ($state eq 'math') {
s/^ *//;
@@ -98,7 +102,6 @@ sub syshtml ($@) {
}
}
print $outfd "$_\n" if $state;
- $state = 0 if /^ENDTEST/;
}
close $outfd;
close $infd;