Skip to content

Commit

Permalink
- Fixed bug #62415 (Undefined variable: diff in run-tests.php on line…
Browse files Browse the repository at this point in the history
… 2093 for successful XFAIL)
  • Loading branch information
felipensp committed Jun 30, 2012
1 parent 8fe87e7 commit 75d8af7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion run-tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -2089,8 +2089,10 @@ function run_test($php, $file, $env)
if (isset($old_php)) {
$php = $old_php;
}

$diff = empty($diff) ? '' : "<![CDATA[\n " . preg_replace('/\e/', '<esc>', $diff) . "\n]]>";

junit_mark_test_as($restype, str_replace($cwd . '/', '', $tested_file), $tested, null, $info, "<![CDATA[\n " . preg_replace('/\e/', '<esc>', $diff) . "\n]]>");
junit_mark_test_as($restype, str_replace($cwd . '/', '', $tested_file), $tested, null, $info, $diff);

return $restype[0] . 'ED';
}
Expand Down

0 comments on commit 75d8af7

Please sign in to comment.