Changeset 5b91b48 for test/test1.c


Ignore:
Timestamp:
02/20/06 18:36:31 (16 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:
1b4901a
Parents:
0a6638f
Message:

Added more test cases

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/test1.c

    r7068467 r5b91b48  
    5252        char *uri = "erf:./traces/100_packets.erf";
    5353        struct libtrace_t *trace;
     54
     55        printf("create trace\n");
    5456       
    5557        trace = trace_create(uri);
    5658
     59        printf("created trace\n");
     60
    5761        trace_start(trace);
     62
     63        printf("started trace\n");
    5864       
    5965        if (trace) {
     
    6268                return 0;
    6369        }
    64         printf("failure: cannot open erf traces\n");
    65         trace_perror("trace_create");
     70        printf("failure: %s\n",trace_err.problem);
    6671        return -1;
    6772}
Note: See TracChangeset for help on using the changeset viewer.