Skip to content

Commit 21ca5d9

Browse files
committed
rule_tst.pl. handle valid space commands in rules
1 parent 18b6215 commit 21ca5d9

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

rule_tst.dat

+22
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,28 @@ f
1616
{
1717
}
1818

19+
# some HC rules (also 'raw' spaces for characters which are NEEDED)
20+
E
21+
p3p2
22+
$ p2E
23+
$ $1qE
24+
$s $y $
25+
o2
26+
i2
27+
$ ^ s x
28+
sx
29+
^ (
30+
$ ^ ) (
31+
%1
32+
e
33+
k
34+
K
35+
y3
36+
Y2
37+
z3
38+
Z1
39+
e?pkKy3Y2z3Z1
40+
1941
# class tests
2042
s??X
2143
s?vX

rule_tst.pl

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
my $last_line_len=0;
3030
my $core_only=0; # assume jumbo john. Actually at this time we ONLY work with jumbo.
3131
my $error_cnt = 0; my $done_cnt = 0; my $tot_rules = 0; my $ret_val_non_zero_cnt = 0;
32-
my $max_pp = 15000;
32+
my $max_pp = 6000;
3333
my @startingTime;
3434

3535
# Set these once and we don't have to care about them anymore
@@ -319,7 +319,7 @@ sub readData {
319319
my $line_cnt = 0;
320320
foreach my $line(@lines) {
321321
chomp($line);
322-
$line =~ s/[ \t\r]*$//; # strip CR for non-Windows, and 'ltrim', so that blank lines (with white space) are skipped.
322+
$line =~ s/[\r]*$//; # strip CR for non-Windows, and 'ltrim', so that blank lines (with white space) are skipped.
323323
++$line_cnt;
324324
if (length($line) > 0) {
325325
if (substr($line, 0, 1) eq "#") { push(@rulesdata, $line); }

0 commit comments

Comments
 (0)