dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
45c1ddf
)
Reading a parser test file with no tests matching the regex was counted as a FAIL.
author
Platonides
<platonides@users.mediawiki.org>
Tue, 4 May 2010 16:39:04 +0000
(16:39 +0000)
committer
Platonides
<platonides@users.mediawiki.org>
Tue, 4 May 2010 16:39:04 +0000
(16:39 +0000)
maintenance/parserTests.inc
patch
|
blob
|
history
diff --git
a/maintenance/parserTests.inc
b/maintenance/parserTests.inc
index
69d03a8
..
0a3522f
100644
(file)
--- a/
maintenance/parserTests.inc
+++ b/
maintenance/parserTests.inc
@@
-289,7
+289,7
@@
class ParserTest {
function runTests($tests) {
$ok = true;
function runTests($tests) {
$ok = true;
- foreach($tests as $i => $t) {
+
foreach($tests as $i => $t) {
$result =
$this->runTest($t['test'], $t['input'], $t['result'], $t['options'], $t['config']);
$ok = $ok && $result;
$result =
$this->runTest($t['test'], $t['input'], $t['result'], $t['options'], $t['config']);
$ok = $ok && $result;
@@
-1592,10
+1592,10
@@
class TestFileIterator implements Iterator {
if(fseek($this->fh, 0)) {
wfDie( "Couldn't fseek to the start of '$filename'\n" );
}
if(fseek($this->fh, 0)) {
wfDie( "Couldn't fseek to the start of '$filename'\n" );
}
- $this->index =
0
;
+ $this->index =
-1
;
$this->lineNum = 0;
$this->eof = false;
$this->lineNum = 0;
$this->eof = false;
- $this->
readNextTes
t();
+ $this->
nex
t();
return true;
}
return true;
}