dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Selenium: replace UserLoginPage with BlankPage where possible"
[lhc/web/wiklou.git]
/
tests
/
parser
/
ParserTestPrinter.php
diff --git
a/tests/parser/ParserTestPrinter.php
b/tests/parser/ParserTestPrinter.php
index
fddee3d
..
34f8cd5
100644
(file)
--- a/
tests/parser/ParserTestPrinter.php
+++ b/
tests/parser/ParserTestPrinter.php
@@
-168,14
+168,10
@@
class ParserTestPrinter extends TestRecorder {
$output = strtr( $output, $pairs );
}
$output = strtr( $output, $pairs );
}
- # Windows, or at least the fc utility, is retarded
- $slash = wfIsWindows() ? '\\' : '/';
- $prefix = wfTempDir() . "{$slash}mwParser-" . mt_rand();
-
- $infile = "$prefix-$inFileTail";
+ $infile = tempnam( wfTempDir(), "mwParser-$inFileTail" );
$this->dumpToFile( $input, $infile );
$this->dumpToFile( $input, $infile );
- $outfile =
"$prefix-$outFileTail"
;
+ $outfile =
tempnam( wfTempDir(), "mwParser-$outFileTail" )
;
$this->dumpToFile( $output, $outfile );
global $wgDiff3;
$this->dumpToFile( $output, $outfile );
global $wgDiff3;