~yolanda.robla/ubuntu/saucy/clamav/dep-8-tests

« 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-02 23:27:19 UTC
  • mfrom: (0.35.9 sid)
  • Revision ID: james.westby@ubuntu.com-20091102232719-61ay35095dhbuxfm
Tags: 0.95.3+dfsg-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Drop build-dep on electric-fence (in Universe)
  - Build-dep on libltdl3-dev instead of libltdl-dev for updating earlier
    releases more easily
  - Add apparmor profiles for clamd and freshclam along with maintainer
    script changes

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, ':');