Changeset 6a38a7e


Ignore:
Timestamp:
05/23/14 14:57:55 (7 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
d3b6b91
Parents:
5692bc4
Message:

Allow a bit more leeway in the test-time unit test

Floating point division is not particularly precise on some
systems...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/test-time.c

    r5692bc4 r6a38a7e  
    120120                ts=trace_get_seconds(packet);
    121121                tsdiff = (tv.tv_sec+tv.tv_usec/1000000.0)-ts;
    122                 assert(tsdiff > -0.000001 && tsdiff < 0.000001);
     122                assert(tsdiff > -0.001 && tsdiff < 0.001);
    123123
    124124        }
Note: See TracChangeset for help on using the changeset viewer.