Uploaded image for project: 'FtpServer'
  1. FtpServer
  2. FTPSERVER-175

Build test fails under Windows XP

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0.0-M4
    • 1.0.0-M4
    • Core
    • None
    • Windows XP, Sun JDK 1.6.0_03

    Description

      excerpt from build log
      Failed tests:
      testFile(org.apache.ftpserver.config.spring.FileUserManagerConfigTest)

      Tests run: 571, Failures: 1, Errors: 0, Skipped: 0

      Excerpt from Test set: org.apache.ftpserver.config.spring.FileUserManagerConfigTest
      junit.framework.ComparisonFailure: expected:<[/tmp/]foo.users> but was:<[C:\tmp]foo.users>

      Patch that works for me:
      Index: FileUserManagerConfigTest.java
      ===================================================================
      — FileUserManagerConfigTest.java (revision 693655)
      +++ FileUserManagerConfigTest.java (working copy)
      @@ -41,7 +41,7 @@

      public void testFile() throws Throwable

      { PropertiesUserManager um = createPropertiesUserManager("<file-user-manager file=\"/tmp/foo.users\" />"); - assertEquals("/tmp/foo.users", um.getFile().getAbsolutePath()); + assertEquals("/tmp/foo.users".replace('/', um.getFile().separatorChar), um.getFile().getPath()); }

      public void testMd5PasswordEncryptor() throws Throwable {

      Attachments

        1. FileUserManagerConfigTest.patch
          0.6 kB
          Robin Windels

        Issue Links

          Activity

            People

              niklas Niklas Therning
              rwindels Robin Windels
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: