FileUtilsTest fail on Linux
---------------------------
Key: UIMA-442
URL: https://issues.apache.org/jira/browse/UIMA-442
Project: UIMA
Issue Type: Bug
Components: Build, Packaging and Test
Affects Versions: 2.1
Environment: Ubuntu Linux 7.04- SUN Java 6 (1.6.0-b105), Eclipse
3.3RC3, Maven 2.0.6
Reporter: Roberto Franchini
The FileUtilsTest fails on linux while using windows path:
base = new File("c:/foo/bar/baz/dir/");
target = new File("c:/foo/d1/d2/d3/blah.xml");
assertEquals("../../../d1/d2/d3/blah.xml",
FileUtils.findRelativePath(target, base));
Eclipse JUnit trace:
junit.framework.ComparisonFailure: expected:<...../../d1/d2/d3/...> but
was:<...c:\foo\d1\d2\d3\...>
at junit.framework.Assert.assertEquals(Assert.java:81)
at junit.framework.Assert.assertEquals(Assert.java:87)
at
org.apache.uima.util.FileUtilsTest.testFindRelativePath(FileUtilsTest.java:41)
[snip]
Maven fails too:
...
Running org.apache.uima.util.FileUtilsTest
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec <<<
FAILURE!
...
Results :
Failed tests:
testFindRelativePath(org.apache.uima.util.FileUtilsTest)
Tests run: 363, Failures: 1, Errors: 0, Skipped: 0
...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.