• Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • core
    • None
    • OS X 10.6.3, JDK 1.6.0_17

      testSymlink fails with the following:

        <testcase time="1.04" classname="hudson.UtilTest" name="testSymlink">
          <error message="Failed to readlink /var/folders/HH/HHNxVzWsHDi2dNFJPBctrk+++TM/-Tmp-/hudson2878407350003022763tmp/x error=2" type="java.io.IOException">java.io.IOException: Failed to readlink /var/folders/HH/HHNxVzWsHDi2dNFJPBctrk+++TM/-Tmp-/hudson2878407350003022763tmp/x error=2
      	at hudson.Util.resolveSymlink(Util.java:1030)
      	at hudson.UtilTest.testSymlink(UtilTest.java:176)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at junit.framework.TestCase.runTest(TestCase.java:168)
      	at junit.framework.TestCase.runBare(TestCase.java:134)
      	at junit.framework.TestResult$1.protect(TestResult.java:110)
      	at junit.framework.TestResult.runProtected(TestResult.java:128)
      	at junit.framework.TestResult.run(TestResult.java:113)
      	at junit.framework.TestCase.run(TestCase.java:124)
      	at junit.framework.TestSuite.runTest(TestSuite.java:232)
      	at junit.framework.TestSuite.run(TestSuite.java:227)
      	at org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:76)
      	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
      	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
      	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
      	at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
      	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
      </error>
          <system-err>log output: ln -s 48495...longNumbers...556574849505152535455 /var/folders/HH/HHNxVzWsHDi2dNFJPBctrk+++TM/-Tmp-/hudson2878407350003022763tmp/x failed: 63
      
      </system-err>
        </testcase>
      

      This seems to be because readlink on OS X doesn't suppor the -f flag.

          [JENKINS-6259] testSymlink fails on OS X

          Andrew Bayer created issue -
          Kohsuke Kawaguchi made changes -
          Description Original: testSymlink fails with the following:


            <testcase time="1.04" classname="hudson.UtilTest" name="testSymlink">
              <error message="Failed to readlink /var/folders/HH/HHNxVzWsHDi2dNFJPBctrk+++TM/-Tmp-/hudson2878407350003022763tmp/x error=2" type="java.io.IOException">java.io.IOException: Failed to readlink /var/folders/HH/HHNxVzWsHDi2dNFJPBctrk+++TM/-Tmp-/hudson2878407350003022763tmp/x error=2
          at hudson.Util.resolveSymlink(Util.java:1030)
          at hudson.UtilTest.testSymlink(UtilTest.java:176)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at junit.framework.TestCase.runTest(TestCase.java:168)
          at junit.framework.TestCase.runBare(TestCase.java:134)
          at junit.framework.TestResult$1.protect(TestResult.java:110)
          at junit.framework.TestResult.runProtected(TestResult.java:128)
          at junit.framework.TestResult.run(TestResult.java:113)
          at junit.framework.TestCase.run(TestCase.java:124)
          at junit.framework.TestSuite.runTest(TestSuite.java:232)
          at junit.framework.TestSuite.run(TestSuite.java:227)
          at org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:76)
          at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
          at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
          at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
          at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
          at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
          </error>
              <system-err>log output: ln -s 484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455 /var/folders/HH/HHNxVzWsHDi2dNFJPBctrk+++TM/-Tmp-/hudson2878407350003022763tmp/x failed: 63

          </system-err>
            </testcase>


          This seems to be because readlink on OS X doesn't suppor the -f flag.
          New: testSymlink fails with the following:

          {noformat}
            <testcase time="1.04" classname="hudson.UtilTest" name="testSymlink">
              <error message="Failed to readlink /var/folders/HH/HHNxVzWsHDi2dNFJPBctrk+++TM/-Tmp-/hudson2878407350003022763tmp/x error=2" type="java.io.IOException">java.io.IOException: Failed to readlink /var/folders/HH/HHNxVzWsHDi2dNFJPBctrk+++TM/-Tmp-/hudson2878407350003022763tmp/x error=2
          at hudson.Util.resolveSymlink(Util.java:1030)
          at hudson.UtilTest.testSymlink(UtilTest.java:176)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at junit.framework.TestCase.runTest(TestCase.java:168)
          at junit.framework.TestCase.runBare(TestCase.java:134)
          at junit.framework.TestResult$1.protect(TestResult.java:110)
          at junit.framework.TestResult.runProtected(TestResult.java:128)
          at junit.framework.TestResult.run(TestResult.java:113)
          at junit.framework.TestCase.run(TestCase.java:124)
          at junit.framework.TestSuite.runTest(TestSuite.java:232)
          at junit.framework.TestSuite.run(TestSuite.java:227)
          at org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:76)
          at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
          at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
          at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
          at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
          at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
          </error>
              <system-err>log output: ln -s 484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455 /var/folders/HH/HHNxVzWsHDi2dNFJPBctrk+++TM/-Tmp-/hudson2878407350003022763tmp/x failed: 63

          </system-err>
            </testcase>
          {noformat}

          This seems to be because readlink on OS X doesn't suppor the -f flag.
          Kohsuke Kawaguchi made changes -
          Description Original: testSymlink fails with the following:

          {noformat}
            <testcase time="1.04" classname="hudson.UtilTest" name="testSymlink">
              <error message="Failed to readlink /var/folders/HH/HHNxVzWsHDi2dNFJPBctrk+++TM/-Tmp-/hudson2878407350003022763tmp/x error=2" type="java.io.IOException">java.io.IOException: Failed to readlink /var/folders/HH/HHNxVzWsHDi2dNFJPBctrk+++TM/-Tmp-/hudson2878407350003022763tmp/x error=2
          at hudson.Util.resolveSymlink(Util.java:1030)
          at hudson.UtilTest.testSymlink(UtilTest.java:176)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at junit.framework.TestCase.runTest(TestCase.java:168)
          at junit.framework.TestCase.runBare(TestCase.java:134)
          at junit.framework.TestResult$1.protect(TestResult.java:110)
          at junit.framework.TestResult.runProtected(TestResult.java:128)
          at junit.framework.TestResult.run(TestResult.java:113)
          at junit.framework.TestCase.run(TestCase.java:124)
          at junit.framework.TestSuite.runTest(TestSuite.java:232)
          at junit.framework.TestSuite.run(TestSuite.java:227)
          at org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:76)
          at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
          at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
          at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
          at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
          at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
          </error>
              <system-err>log output: ln -s 484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455565748495051525354555657484950515253545556574849505152535455 /var/folders/HH/HHNxVzWsHDi2dNFJPBctrk+++TM/-Tmp-/hudson2878407350003022763tmp/x failed: 63

          </system-err>
            </testcase>
          {noformat}

          This seems to be because readlink on OS X doesn't suppor the -f flag.
          New: testSymlink fails with the following:

          {noformat}
            <testcase time="1.04" classname="hudson.UtilTest" name="testSymlink">
              <error message="Failed to readlink /var/folders/HH/HHNxVzWsHDi2dNFJPBctrk+++TM/-Tmp-/hudson2878407350003022763tmp/x error=2" type="java.io.IOException">java.io.IOException: Failed to readlink /var/folders/HH/HHNxVzWsHDi2dNFJPBctrk+++TM/-Tmp-/hudson2878407350003022763tmp/x error=2
          at hudson.Util.resolveSymlink(Util.java:1030)
          at hudson.UtilTest.testSymlink(UtilTest.java:176)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at junit.framework.TestCase.runTest(TestCase.java:168)
          at junit.framework.TestCase.runBare(TestCase.java:134)
          at junit.framework.TestResult$1.protect(TestResult.java:110)
          at junit.framework.TestResult.runProtected(TestResult.java:128)
          at junit.framework.TestResult.run(TestResult.java:113)
          at junit.framework.TestCase.run(TestCase.java:124)
          at junit.framework.TestSuite.runTest(TestSuite.java:232)
          at junit.framework.TestSuite.run(TestSuite.java:227)
          at org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:76)
          at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
          at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
          at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
          at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
          at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
          </error>
              <system-err>log output: ln -s 48495...longNumbers...556574849505152535455 /var/folders/HH/HHNxVzWsHDi2dNFJPBctrk+++TM/-Tmp-/hudson2878407350003022763tmp/x failed: 63

          </system-err>
            </testcase>
          {noformat}

          This seems to be because readlink on OS X doesn't suppor the -f flag.
          Andrew Bayer made changes -
          Resolution New: Cannot Reproduce [ 5 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Andrew Bayer made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 136352 ] New: JNJira + In-Review [ 203988 ]

            Unassigned Unassigned
            abayer Andrew Bayer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: