[
https://issues.apache.org/jira/browse/HADOOP-8978?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13483685#comment-13483685
]
Chris Nauroth commented on HADOOP-8978:
---------------------------------------
{code}
Running org.apache.hadoop.fs.TestTrash
Tests run: 4, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 15.735 sec <<<
FAILURE!
testTrash(org.apache.hadoop.fs.TestTrash) Time elapsed: 125 sec <<< FAILURE!
junit.framework.AssertionFailedError: Could not find file in trash:
file:/C:/hdc/hadoop-common-project/hadoop-common/target/test/data/testTrash/user/test/.Trash/Current/C:/hdc/hadoop-common-project/hadoop-common/target/test/data/testTrash/test/mkdirs/myFile
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.assertTrue(Assert.java:20)
at org.apache.hadoop.fs.TestTrash.checkTrash(TestTrash.java:59)
at org.apache.hadoop.fs.TestTrash.trashShell(TestTrash.java:170)
at org.apache.hadoop.fs.TestTrash.trashShell(TestTrash.java:100)
at org.apache.hadoop.fs.TestTrash.testTrash(TestTrash.java:499)
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:243)
at junit.framework.TestSuite.run(TestSuite.java:238)
at
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at
org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
at
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
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.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at
org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
at
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
{code}
> TestTrash fails on Windows
> --------------------------
>
> Key: HADOOP-8978
> URL: https://issues.apache.org/jira/browse/HADOOP-8978
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs
> Affects Versions: trunk-win
> Reporter: Chris Nauroth
> Assignee: Chris Nauroth
>
> The tests assert that a file is found in trash after deleting, but it's not
> found when run on Windows.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira