uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Lally (JIRA)" <uima-...@incubator.apache.org>
Subject [jira] Resolved: (UIMA-442) FileUtilsTest fail on Linux
Date Mon, 11 Jun 2007 15:06:25 GMT

     [ https://issues.apache.org/jira/browse/UIMA-442?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Adam Lally resolved UIMA-442.
-----------------------------

    Resolution: Fixed

Should be fixed now.

> 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
>            Assignee: Adam Lally
>             Fix For: 2.2
>
>
> 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.


Mime
View raw message