~ubuntu-branches/ubuntu/wily/clamav/wily-proposed

« back to all changes in this revision

Viewing changes to unit_tests/check_clamav.c

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2015-05-05 14:14:58 UTC
  • mfrom: (0.47.16)
  • Revision ID: package-import@ubuntu.com-20150505141458-mbkr5jjfu3j9gdvd
Tags: 0.98.7+dfsg-0ubuntu1
* Updated to 0.98.7 to fix multiple issues
  - CVE-2015-2170
  - CVE-2015-2221
  - CVE-2015-2222
  - CVE-2015-2305
  - CVE-2015-2668
* Refreshed patches for 0.98.7:
  - d/p/0005-libclamav-use-libmspack.patch
  - d/p/0007-fix-ssize_t-size_t-off_t-printf-modifier.patch
  - d/p/0008-hardcode-LLVM-linker-flag-because-llvm-config-return.patch
  - d/p/0015-llvm-don-t-use-system-libs.patch
* Removed upstreamed patches:
  - d/p/0012-remove-AC_CONFIG_SRCDIR-llvm-configure-from-libclama.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
623
623
    Suite *s = suite_create("cl_api");
624
624
    TCase *tc_cl = tcase_create("cl_dup");
625
625
    TCase *tc_cl_scan = tcase_create("cl_scan");
 
626
    char *user_timeout = NULL;
626
627
    int expect = expected_testfiles;
627
628
    suite_add_tcase (s, tc_cl);
628
629
    tcase_add_test(tc_cl, test_cl_free);
661
662
    tcase_add_loop_test(tc_cl_scan, test_cl_scanmap_callback_handle_allscan, 0, expect);
662
663
    tcase_add_loop_test(tc_cl_scan, test_cl_scanmap_callback_mem, 0, expect);
663
664
    tcase_add_loop_test(tc_cl_scan, test_cl_scanmap_callback_mem_allscan, 0, expect);
 
665
 
 
666
    user_timeout = getenv("T");
 
667
    if (user_timeout) {
 
668
        int timeout = atoi(user_timeout);
 
669
        tcase_set_timeout(tc_cl_scan, timeout);
 
670
    }
664
671
#endif
665
672
    return s;
666
673
}