Ignore:
Timestamp:
10/01/15 17:29:38 (6 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, 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:
01619eb
Parents:
2e9df89
Message:

Add usleep for first packet in all parallel tests

This ensures that the processing and reporting threads will still be
running when our test tries to pause them. Without this, our tests will
sometimes fail because we call pause on a trace that is finished (i.e. not
started).

Started noticing this with gcc 5.1.1, so might be due to better compiler
optimisations?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/test-format-parallel.c

    r8decff7 r135e3f6  
    162162        assert(*magic == 0xabcdef);
    163163
     164        if (storage->count == 0)
     165                usleep(100000);
    164166        storage->count ++;
    165167        count ++;
Note: See TracChangeset for help on using the changeset viewer.