[LLVMbugs] [Bug 2215] New: ClamAV test reads files from .svn directory

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Apr 9 15:58:06 PDT 2008


http://llvm.org/bugs/show_bug.cgi?id=2215

           Summary: ClamAV test reads files from .svn directory
           Product: Test Suite
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Programs Tests
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: gohman at apple.com
                CC: llvmbugs at cs.uiuc.edu


The clamscan program apparently has the behavior of recursively
scanning directories to find input files. Since this test's input files
are currently in a directory in the source tree, this unfortunately
means that the .svn files that are part of the source tree are
found and are read in as part of the test. 

For example, I see this output:

Scanning
...../llvm-test/MultiSource/Applications/ClamAV/inputs/rtf-test/.svn/all-wcprops
...../llvm-test/MultiSource/Applications/ClamAV/inputs/rtf-test/.svn/all-wcprops:
OK

The main problem with this that I've hit is that stuff in the .svn
directory can change between runs, and since the llvm-test
makefiles don't re-run the native version if nothing they know
about has changed, this can cause failures because the new runs
will have different numbers of files to scan.

Theoretically there would also be a problem if something in the .svn
directory looked like a virus to clamscan.

One way to fix this would be to copy the input files into the
Output directory, excluding the .svn directories.


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list