diff options
author | Felipe Pena <felipensp@gmail.com> | 2012-06-30 16:42:28 -0300 |
---|---|---|
committer | Felipe Pena <felipensp@gmail.com> | 2012-06-30 16:42:28 -0300 |
commit | eb012cf88440423ff02c46421f29a1c6e850702c (patch) | |
tree | 369f0230c3ed6d519db1dd230ef328e4134083af /run-tests.php | |
parent | c51fbbe4b4e2c047d1be76d8bffc6391203adbdd (diff) | |
parent | b8d453d8d4b6a67531aa1c2d0d7bab1e25ed1d4f (diff) | |
download | php-git-eb012cf88440423ff02c46421f29a1c6e850702c.tar.gz |
- Fixed bug #62415 (Undefined variable: diff in run-tests.php on line 2093 for successful XFAIL)
Diffstat (limited to 'run-tests.php')
-rwxr-xr-x | run-tests.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/run-tests.php b/run-tests.php index 160079b251..c760c61bc1 100755 --- a/run-tests.php +++ b/run-tests.php @@ -2092,8 +2092,10 @@ $output 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'; } |