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:45:    foreach( c->query("URLs"), string url )    if( has_prefix( url, "http://" ) )    http_url = (url/"#")[0];       if( !http_url )    {    werror("Cannot run test -- no HTTP port open\n");    return;    }    -  test = Process.create_process( ({ +  test = Process.Process( ({    getenv("PIKE"),    combine_path( __FILE__, "../"+p ),    http_url    })+args );   }      void current_test_done()   {   #define IND(X) all_tests[ current_test+(X) ]    if( !test || test->status() )    {    if( function fp = IND("_check") )    if( string fail = fp( ) )    {    tests_failed++;    if( verbose ) report_debug(" FAILED\n"); -  report_debug(do_describe_error(IND("_desc")+" FAILED\n" )); +  report_debug("################ " + +  do_describe_error(IND("_desc")+" FAILED\n" ));    report_debug(do_describe_error( fail ));    }    else if( verbose )    report_debug(" PASS\n");          current_test++;    if( function t = IND("") )    {    if( verbose )