diff --git a/.github/scripts/codespell-ignore.txt b/.github/scripts/codespell-ignore.txt index a3fff7bc9a..79dd7fbe19 100644 --- a/.github/scripts/codespell-ignore.txt +++ b/.github/scripts/codespell-ignore.txt @@ -24,7 +24,6 @@ ser strat te ths -ttests varius wast wit diff --git a/.github/scripts/typos.toml b/.github/scripts/typos.toml index 8e179935a0..c3d0445764 100644 --- a/.github/scripts/typos.toml +++ b/.github/scripts/typos.toml @@ -7,7 +7,7 @@ extend-ignore-identifiers-re = [ "(ba|BA|fo|Fo|FU|Iy|ND|OT|pn|PN|ue|UE)", "(anc|bck|ben|CNA|ECT|EDE|edn|ein|Jod|kno|MEK|Nam|Ned|noo|nin|nto|ser|ths|Typ|typ|URE|wrk)", "(admi|alue|CLEA|clen|GOST|HELO|helo|htpt|PARM|PASE)", - "(HEADE|numer|optin|stati|ttests)", + "(HEADE|numer|optin|stati)", "(Januar|passin|Passiv|perfec|PUNICODE|TEMPLAT|varius)", ] diff --git a/tests/runner.pm b/tests/runner.pm index 2122c167ca..e26fcf4f46 100644 --- a/tests/runner.pm +++ b/tests/runner.pm @@ -458,18 +458,18 @@ sub torture { return 0; } - my @ttests = (1 .. $count); + my @torture_tests = (1 .. $count); if($shallow && ($shallow < $count)) { - my $discard = scalar(@ttests) - $shallow; - my $percent = sprintf("%.2f%%", $shallow * 100 / scalar(@ttests)); + my $discard = scalar(@torture_tests) - $shallow; + my $percent = sprintf("%.2f%%", $shallow * 100 / scalar(@torture_tests)); logmsg " $count functions found, but only fail $shallow ($percent)\n"; while($discard) { my $rm; do { # find a test to discard - $rm = rand(scalar(@ttests)); - } while(!$ttests[$rm]); - $ttests[$rm] = undef; + $rm = rand(scalar(@torture_tests)); + } while(!$torture_tests[$rm]); + $torture_tests[$rm] = undef; $discard--; } } @@ -477,7 +477,7 @@ sub torture { logmsg " $count functions to make fail\n"; } - for (@ttests) { + for (@torture_tests) { my $limit = $_; my $fail; my $dumped_core;