Uploaded image for project: 'Commons VFS'
  1. Commons VFS
  2. VFS-514

[tests] PermissionsTests leaves unclean test directory

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.1
    • Labels:
    • Environment:

      CentOS x64 Maven 3.1 build Java 7u51

      Description

      As discussed in VFS-500 the RamProviderTestCase fails with FileNotFoundException in setUp() if it is running after the PermissionTest of LocalProviderTestCase. The attached patch will make sure the test file with the limited permissions will be removed after the test run. It also makes sure to name the file a bit easier to correlate with the test. It also fixes some copy+paste errors in comments. It also moves the test functions together (moves the private helper functions to the end of the file).

      I am not sure why not all tests fail and why the problem occurs more often with VFS-500 applied. Could be a sequence thing?

        Attachments

        1. VFS-514-permission.patch
          4 kB
          Bernd Eckenfels

          Issue Links

            Activity

              People

              • Assignee:
                ggregory Gary Gregory
                Reporter:
                b.eckenfels Bernd Eckenfels
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: