Do not print things outside of the standard TS_FAIL output, or garbage will be added to the XML output when running the tests under Jenkins.
This patch has the extra benefit that the stack trace actually appears on Windows now, instead of going into the void. Tested by Vladislav, refs #4419 This was SVN commit r19045.
This commit is contained in:
parent
f622ab0905
commit
58e5642c48
@ -8,11 +8,11 @@
|
||||
function fail(msg)
|
||||
{
|
||||
// Get a list of callers
|
||||
var trace = (new Error).stack.split("\n");
|
||||
let trace = (new Error).stack.split("\n");
|
||||
// Remove the Error ctor and this function from the stack
|
||||
trace = trace.splice(2);
|
||||
print("Stack trace:\n" + trace.join("\n"));
|
||||
Engine.TS_FAIL(msg);
|
||||
trace = "Stack trace:\n" + trace.join("\n");
|
||||
Engine.TS_FAIL(trace + msg);
|
||||
}
|
||||
|
||||
global.TS_FAIL = function TS_FAIL(msg)
|
||||
|
Loading…
Reference in New Issue
Block a user