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

version» Context lines:

Roxen.git/server/etc/test/tests/pike_async_process_test_common.pike:19:   {    if( stringp( err ) )    return indent(2,err + (strlen(err)?(err[-1] == '\n' ? "": "\n" ):""));    err = (array)err;    err[1] = err[1][sizeof(err[1])-3..];    return indent(2, describe_backtrace( err ) );   }      string common_wait( mapping m )   { +  if (!test) { +  return "Test not started"; +  }    int err = test->wait();    if( err == 100 ) return "Illegal arguments";    if( err == 99 ) return "Timeout";    if( !m[10] && (err == 10) )    return "The external pike script triggered an error";    if( !m[1] && (err == 1) )    return "The external pike script failed to compile";    return err && ( m[ err ] || ("Unknown error "+err) );   }