Browse code

fix previous: typo in unit_tests, order in cli_exe_info

aCaB authored on 2010/07/30 23:08:51
Showing 2 changed files
... ...
@@ -50,12 +50,12 @@ struct cli_exe_info {
50 50
     uint32_t ep;
51 51
     /** Number of sections*/
52 52
     uint16_t nsections;
53
+    /** Hashset for versioninfo matching */
54
+    struct cli_hashset *vinfo;
53 55
     /** Resrources RVA - PE ONLY */
54 56
     uint32_t res_addr;
55 57
     /** Address size - PE ONLY */
56 58
     uint32_t hdr_size;
57
-    /** Hashset for versioninfo matching */
58
-    struct cli_hashset *vinfo;
59 59
 };
60 60
 
61 61
 #endif
... ...
@@ -191,7 +191,7 @@ EOF
191 191
     grep "clam_IScab_ext.exe: ClamAV-Test-Icon-IScab.UNOFFICIAL FOUND" clamscan4.log || die "icon-test3 failed"
192 192
     grep "clam_IScab_int.exe: ClamAV-Test-Icon-IScab.UNOFFICIAL FOUND" clamscan4.log || die "icon-test4 failed"
193 193
     NINFECTED=`grep "Infected files" clamscan4.log | cut -f2 -d: | sed -e 's/ //g'`
194
-    if test "x$NINFECTED" -ne x4; then
194
+    if test "x$NINFECTED" != x4; then
195 195
 	scan_failed clamscan4.log "clamscan has detected spurious icons or whitlisting was not applier properly"
196 196
     fi
197 197
     test_end $1