X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fparser%2FparserTest.inc;h=a0ede097a876e4c9da49e5bd3d5e52e57116848f;hb=1861c56b9331532afa4869dabe46efca14b41393;hp=7c8daf2e99590d3477466b63551e93f1ccd0ba94;hpb=c752c43a374a49fe77dacac5a0a514c5a43f838b;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/parser/parserTest.inc b/tests/parser/parserTest.inc index 7c8daf2e99..a0ede097a8 100644 --- a/tests/parser/parserTest.inc +++ b/tests/parser/parserTest.inc @@ -1174,9 +1174,10 @@ class ParserTest { global $wgDiff3; // we assume that people with diff3 also have usual diff - $diff = ( wfIsWindows() && !$wgDiff3 ) - ? `fc $shellInfile $shellOutfile` - : `diff -au $shellInfile $shellOutfile`; + $shellCommand = ( wfIsWindows() && !$wgDiff3 ) ? 'fc' : 'diff -au'; + + $diff = wfShellExec( "$shellCommand $shellInfile $shellOutfile" ); + unlink( $infile ); unlink( $outfile );