Roxen.git / server / etc / test / tests / pike_test_common.pike

version» Context lines:

Roxen.git/server/etc/test/tests/pike_test_common.pike:44:    array q = what/"\n";   // if( q[-1] == "" ) q = q[..sizeof(q)-2];    string i = (" "*l+"| ");    return i+q*("\n"+i)+"\n";   }      string do_describe_error( mixed err )   {    if( stringp( err ) )    return indent(2,err + (strlen(err)?(err[-1] == '\n' ? "": "\n" ):"")); + #if 0    catch {    err = (array)err;    err[1] = err[1][sizeof(err[1])-3..];    return indent(2, describe_backtrace( err ) );    }; -  + #endif    return indent(2, describe_backtrace( err ) );   }      void report_test_failure( mixed err, function cb, array args, int st )   {    if( verbose )    report_debug(" FAILED\n");    report_debug(do_describe_error(sprintf( "%O( %s ) FAILED\n",    cb, describe_arglist( args ))));    if( err )