Ignore:
Timestamp:
Oct 1, 2008 9:02:12 AM (16 years ago)
Author:
bennylp
Message:

Ticket #650: Unit test failure in the timestamp test on very fast CPU (thanks Seth Hinze for the patch)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pjlib-test/timestamp.c

    r2039 r2336  
    5252    pj_timestamp freq, t1, t2; 
    5353    pj_time_val tv1, tv2, tvtmp; 
    54     pj_uint32_t msec, tics; 
     54    pj_int64_t msec, tics; 
    5555    pj_int64_t diff; 
    5656 
     
    6666    pj_get_timestamp(&t1); 
    6767 
    68     /* Sleep for 5 seconds */ 
     68    /* Sleep for 10 seconds */ 
    6969    pj_thread_sleep(10000); 
    7070 
     
    8181 
    8282    /* Check that the frequency match the elapsed time */ 
    83     tics = (unsigned)(t2.u64 - t1.u64); 
     83    tics = t2.u64 - t1.u64; 
    8484    diff = tics - (msec * freq.u64 / 1000); 
    8585    if (diff < 0) 
Note: See TracChangeset for help on using the changeset viewer.