Ticket #300: bug300.patch

File bug300.patch, 641 bytes (added by Olly Betts, 16 years ago)

Backported patch

  • tests/api_wrdb.cc

     
    20282028    tout << "Adding a document with " << 10 * N << " values took " << time_10N
    20292029         << " seconds" << endl;
    20302030
     2031    if (time_N == 0.0) {
     2032        // The first test completed before the timer ticked at all!
     2033        SKIP_TEST("Timer granularity is too coarse");
     2034    }
     2035
    20312036    // O(n*n) is bad, but we don't require linearity - O(n*log(n)) is
    20322037    // acceptable, so put the threshold halfway between.
    20332038    const double ALLOWED_FACTOR = (100.0 + 10 * 2.71828) / 2.0;