Ticket #4419: fix_xml_output.patch

File fix_xml_output.patch, 659 bytes (added by Itms, 7 years ago)

Do not print anything outside the CxxTest functions, or that breaks the XML output that Jenkins needs

  • binaries/data/tests/test_setup.js

     
    88function fail(msg)
    99{
    1010    // Get a list of callers
    11     var trace = (new Error).stack.split("\n");
     11    let trace = (new Error).stack.split("\n");
    1212    // Remove the Error ctor and this function from the stack
    1313    trace = trace.splice(2);
    14     print("Stack trace:\n" + trace.join("\n"));
    15     Engine.TS_FAIL(msg);
     14    trace = "Stack trace:\n" + trace.join("\n");
     15    Engine.TS_FAIL(trace + msg);
    1616}
    1717
    1818global.TS_FAIL = function TS_FAIL(msg)