Changeset f208f92


Ignore:
Timestamp:
05/29/06 11:58:52 (15 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:
853603a
Parents:
e2aebe7
Message:

Migrate the tests to the new API

Location:
test
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • test/test-convert.c

    r77a38d9 rf208f92  
    141141                        break;
    142142        }
    143         trace_destroy_packet(&packet);
     143        trace_destroy_packet(packet);
    144144        if (error == 0) {
    145145                if (count != expected) {
     
    202202        trace_destroy(trace);
    203203        trace_destroy(trace2);
    204         trace_destroy_packet(&packet);
     204        trace_destroy_packet(packet);
     205        trace_destroy_packet(packet2);
    205206
    206207        return error;
  • test/test-event.c

    r8f80e87 rf208f92  
    100100                iferr(trace);
    101101        }
    102         trace_destroy_packet(&packet);
     102        trace_destroy_packet(packet);
    103103        if (error == 0) {
    104104                if (count == 100) {
  • test/test-format.c

    rcd7eec7 rf208f92  
    118118                trace_start(trace);
    119119        }
    120         trace_destroy_packet(&packet);
     120        trace_destroy_packet(packet);
    121121        if (error == 0) {
    122122                if (count == expected) {
  • test/test-pcap-bpf.c

    rd8d1ff7 rf208f92  
    6767        int count = 0;
    6868        struct libtrace_packet_t *packet;
    69         struct libtrace_filter_t *filter = trace_bpf_setfilter("port 80");
     69        struct libtrace_filter_t *filter = trace_create_filter("port 80");
    7070
    7171        trace = trace_create(uri);
     
    9696                count ++;
    9797        }
    98         trace_destroy_packet(&packet);
     98        trace_destroy_packet(packet);
    9999        if (error == 0) {
    100100                if (count == 54) {
     
    107107                iferr(trace);
    108108        }
    109         trace_destroy_bpf(filter);
     109        trace_destroy_filter(filter);
    110110        trace_destroy(trace);
    111111        filter=NULL;
  • test/test-seek.c

    r8f80e87 rf208f92  
    8888                count ++;
    8989        }
    90         trace_destroy_packet(&packet);
     90        trace_destroy_packet(packet);
    9191        if (error == 0) {
    9292                if (count == 4) {
  • test/test-time.c

    r8f80e87 rf208f92  
    9090                assert((tv.tv_sec+tv.tv_usec/1000000.0)-ts<.000001);
    9191        }
    92         trace_destroy_packet(&packet);
     92        trace_destroy_packet(packet);
    9393        if (error == 0) {
    9494                if (count == 100) {
Note: See TracChangeset for help on using the changeset viewer.