Changeset cac1d92 for test/test-live.c


Ignore:
Timestamp:
02/27/17 17:42:38 (4 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, master, ndag_format, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
dea08f1
Parents:
0b4b388
Message:

Fix incorrectly reported test failures in test-live

test-live was not taking the smaller test-size into account when
evaluating whether tests where pcapint was the source had
succeeded. Therefore they would report as failed because the
other end had only received 30 packets instead of 100, but
the pcapint source was set to only send 30 packets in the first
place!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/test-live.c

    r8decff7 rcac1d92  
    171171        if (!stat->received_valid) {
    172172                printf("\tInfo: trace does not support received counter\n");
    173         } else if (stat->received != 100) {
    174                 ERROR("Trace received %zu/100 packets\n", stat->received);
     173        } else if (stat->received != (uint32_t) test_size) {
     174                ERROR("Trace received %zu/%u packets\n", stat->received,
     175                                (uint32_t)test_size);
    175176        }
    176177
Note: See TracChangeset for help on using the changeset viewer.