Skip to content

Commit

Permalink
- Replace possible esc char to <esc> in the XML output
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Dec 1, 2011
1 parent 5fdb19f commit 78742a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run-tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -2100,11 +2100,11 @@ function run_test($php, $file, $env)
}
elseif (in_array('FAIL', $restype)) {
$JUNIT['test_fail']++;
$JUNIT['result_xml'] .= '<failure type="'.$restype[0].'ED" message="'.$info.'"><![CDATA['."\n".$diff."\n".']]></failure>'."\n";
$JUNIT['result_xml'] .= '<failure type="'.$restype[0].'ED" message="'.$info.'"><![CDATA['."\n".preg_replace('/\e/', '<esc>', $diff)."\n".']]></failure>'."\n";
}
else{
$JUNIT['test_error']++;
$JUNIT['result_xml'] .= '<error type="'.$restype[0].'ED" message="'.$info.'"><![CDATA['."\n".$diff."\n".']]></error>'."\n";
$JUNIT['result_xml'] .= '<error type="'.$restype[0].'ED" message="'.$info.'"><![CDATA['."\n".preg_replace('/\e/', '<esc>', $diff)."\n".']]></error>'."\n";
}
$JUNIT['result_xml'] .= '</testcase>'."\n";
}
Expand Down

0 comments on commit 78742a3

Please sign in to comment.