~ubuntu-branches/ubuntu/intrepid/clamav/intrepid-backports

« back to all changes in this revision

Viewing changes to unit_tests/check_clamd.c

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2009-11-05 23:14:14 UTC
  • mfrom: (0.3.4 jaunty-proposed)
  • Revision ID: james.westby@ubuntu.com-20091105231414-qm9ppy5rowfqhseq
Tags: 0.95.3+dfsg-1ubuntu0.09.04~intrepid1
* Source backport for Intrepid from jaunty-proposed (LP: #473707)
  - Drop build-dep on libtommath-dev and use internal copy

Show diffs side-by-side

added added

removed removed

Lines of Context:
740
740
    /* test all commands that must be accepted inside an IDSESSION */
741
741
    for (i=0;i < sizeof(basic_tests)/sizeof(basic_tests[0]); i++) {
742
742
        const struct basic_test *test = &basic_tests[i];
 
743
        if (test->skiproot && isroot)
 
744
            continue;
743
745
        if (test->ids == IDS_OK) {
744
746
            fail_unless(p+strlen(test->command)+2 < buf+sizeof(buf), "Buffer too small");
745
747
            *p++ = 'z';
792
794
    p = recvdata;
793
795
    for (i=0;i < sizeof(basic_tests)/sizeof(basic_tests[0]); i++) {
794
796
        const struct basic_test *test = &basic_tests[i];
 
797
        if (test->skiproot && isroot)
 
798
            continue;
795
799
        if (test->ids == IDS_OK) {
796
800
            unsigned id;
797
801
            char *q = strchr(p, ':');