[test-suite] r195646 - Work-around for ClamAV uncertainty in test-suite

Renato Golin renato.golin at linaro.org
Mon Nov 25 07:00:27 PST 2013


Author: rengolin
Date: Mon Nov 25 09:00:27 2013
New Revision: 195646

URL: http://llvm.org/viewvc/llvm-project?rev=195646&view=rev
Log:
Work-around for ClamAV uncertainty in test-suite

Modified:
    test-suite/trunk/MultiSource/Applications/ClamAV/clamscan.reference_output
    test-suite/trunk/MultiSource/Applications/ClamAV/clamscan.reference_output.big-endian
    test-suite/trunk/MultiSource/Applications/ClamAV/libclamav_matcher-ac.c

Modified: test-suite/trunk/MultiSource/Applications/ClamAV/clamscan.reference_output
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Applications/ClamAV/clamscan.reference_output?rev=195646&r1=195645&r2=195646&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Applications/ClamAV/clamscan.reference_output (original)
+++ test-suite/trunk/MultiSource/Applications/ClamAV/clamscan.reference_output Mon Nov 25 09:00:27 2013
@@ -283,8 +283,6 @@ CAB: Extracting file %s to %s, size %u
 
 Recognized %s file
 
-Matched signature for file type %s
-
 e_lfanew == %d
 
 Machine type: 80386
@@ -942,8 +940,6 @@ clamdoc.tar.gz: OK
 Scanning clam.exe
 Recognized %s file
 
-Matched signature for file type %s
-
 e_lfanew == %d
 
 Machine type: 80386
@@ -1035,8 +1031,6 @@ Zip: File decompressed to %s
 
 Recognized %s file
 
-Matched signature for file type %s
-
 e_lfanew == %d
 
 Machine type: 80386
@@ -1303,12 +1297,8 @@ Open PowerPoint Document failed
 
 Open WordDocument failed
 
-Matched signature for file type %s
-
 Recognized %s file
 
-Matched signature for file type %s
-
 e_lfanew == %d
 
 Machine type: 80386
@@ -1404,8 +1394,6 @@ Decoding ole object
 
 Recognized %s file
 
-Matched signature for file type %s
-
 e_lfanew == %d
 
 Machine type: 80386
@@ -1692,12 +1680,8 @@ Open PowerPoint Document failed
 
 Open WordDocument failed
 
-Matched signature for file type %s
-
 Recognized %s file
 
-Matched signature for file type %s
-
 e_lfanew == %d
 
 Machine type: 80386
@@ -1964,12 +1948,8 @@ Open PowerPoint Document failed
 
 Open WordDocument failed
 
-Matched signature for file type %s
-
 Recognized %s file
 
-Matched signature for file type %s
-
 e_lfanew == %d
 
 Machine type: 80386
@@ -2320,12 +2300,8 @@ Open PowerPoint Document failed
 
 Open WordDocument failed
 
-Matched signature for file type %s
-
 Recognized %s file
 
-Matched signature for file type %s
-
 e_lfanew == %d
 
 Machine type: 80386
@@ -2421,8 +2397,6 @@ Decoding ole object
 
 Recognized %s file
 
-Matched signature for file type %s
-
 e_lfanew == %d
 
 Machine type: 80386
@@ -2582,8 +2556,6 @@ Decoding ole object
 
 Recognized %s file
 
-Matched signature for file type %s
-
 e_lfanew == %d
 
 Machine type: 80386

Modified: test-suite/trunk/MultiSource/Applications/ClamAV/clamscan.reference_output.big-endian
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Applications/ClamAV/clamscan.reference_output.big-endian?rev=195646&r1=195645&r2=195646&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Applications/ClamAV/clamscan.reference_output.big-endian (original)
+++ test-suite/trunk/MultiSource/Applications/ClamAV/clamscan.reference_output.big-endian Mon Nov 25 09:00:27 2013
@@ -281,8 +281,6 @@ CAB: Extracting file %s to %s, size %u
 
 Recognized %s file
 
-Matched signature for file type %s
-
 e_lfanew == %d
 
 Machine type: 80386
@@ -940,8 +938,6 @@ clamdoc.tar.gz: OK
 Scanning clam.exe
 Recognized %s file
 
-Matched signature for file type %s
-
 e_lfanew == %d
 
 Machine type: 80386
@@ -1033,8 +1029,6 @@ Zip: File decompressed to %s
 
 Recognized %s file
 
-Matched signature for file type %s
-
 e_lfanew == %d
 
 Machine type: 80386
@@ -1301,12 +1295,8 @@ Open PowerPoint Document failed
 
 Open WordDocument failed
 
-Matched signature for file type %s
-
 Recognized %s file
 
-Matched signature for file type %s
-
 e_lfanew == %d
 
 Machine type: 80386
@@ -1402,8 +1392,6 @@ Decoding ole object
 
 Recognized %s file
 
-Matched signature for file type %s
-
 e_lfanew == %d
 
 Machine type: 80386
@@ -1690,12 +1678,8 @@ Open PowerPoint Document failed
 
 Open WordDocument failed
 
-Matched signature for file type %s
-
 Recognized %s file
 
-Matched signature for file type %s
-
 e_lfanew == %d
 
 Machine type: 80386
@@ -1962,12 +1946,8 @@ Open PowerPoint Document failed
 
 Open WordDocument failed
 
-Matched signature for file type %s
-
 Recognized %s file
 
-Matched signature for file type %s
-
 e_lfanew == %d
 
 Machine type: 80386
@@ -2318,12 +2298,8 @@ Open PowerPoint Document failed
 
 Open WordDocument failed
 
-Matched signature for file type %s
-
 Recognized %s file
 
-Matched signature for file type %s
-
 e_lfanew == %d
 
 Machine type: 80386
@@ -2419,8 +2395,6 @@ Decoding ole object
 
 Recognized %s file
 
-Matched signature for file type %s
-
 e_lfanew == %d
 
 Machine type: 80386
@@ -2580,8 +2554,6 @@ Decoding ole object
 
 Recognized %s file
 
-Matched signature for file type %s
-
 e_lfanew == %d
 
 Machine type: 80386

Modified: test-suite/trunk/MultiSource/Applications/ClamAV/libclamav_matcher-ac.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Applications/ClamAV/libclamav_matcher-ac.c?rev=195646&r1=195645&r2=195646&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Applications/ClamAV/libclamav_matcher-ac.c (original)
+++ test-suite/trunk/MultiSource/Applications/ClamAV/libclamav_matcher-ac.c Mon Nov 25 09:00:27 2013
@@ -634,7 +634,8 @@ int cli_ac_scanbuff(const unsigned char
 				if(pt->type) {
 				    if(otfrec) {
 					if(pt->type > type || pt->type >= CL_TYPE_SFX || pt->type == CL_TYPE_MSEXE) {
-					    cli_dbgmsg("Matched signature for file type %s\n", pt->virname);
+					    /* This debug message was causing trouble on the test-suite for being non-deterministic */
+ 					    /*cli_dbgmsg("Matched signature for file type %s\n", pt->virname);*/
 					    type = pt->type;
 					    if(ftoffset && (!*ftoffset || (*ftoffset)->cnt < MAX_EMBEDDED_OBJ) && ((ftype == CL_TYPE_MSEXE && type >= CL_TYPE_SFX) || ((ftype == CL_TYPE_MSEXE || ftype == CL_TYPE_ZIP) && type == CL_TYPE_MSEXE)))  {
 						/* FIXME: we don't know which offset of the first part is the correct one */





More information about the llvm-commits mailing list