Changeset 7248cdc for test


Ignore:
Timestamp:
08/21/06 23:28:10 (14 years ago)
Author:
Perry Lorier <perry@…>
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:
8bf0517
Parents:
fd33292
Message:

Be more aggressive with finding errors
Remove useless #include

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/test-dir.c

    r0ff6ddf r7248cdc  
    5252#include <string.h>
    5353
    54 #include "dagformat.h"
    5554#include "libtrace.h"
    5655
     
    141140                if (trace_get_source_port(packet)==80) {
    142141                        trace_set_direction(packet,TRACE_DIR_OUTGOING);
     142                        assert(trace_get_direction(packet)==TRACE_DIR_OUTGOING);
     143                        assert(trace_get_source_port(packet)==80);
    143144                }
    144145                else {
    145146                        trace_set_direction(packet,TRACE_DIR_INCOMING);
     147                        assert(trace_get_direction(packet)==TRACE_DIR_INCOMING);
    146148                }
    147149                /* And then force demotion */
Note: See TracChangeset for help on using the changeset viewer.