You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Roberto Franchini (JIRA)" <ui...@incubator.apache.org> on 2007/06/08 12:52:26 UTC

[jira] Created: (UIMA-442) FileUtilsTest fail on Linux

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.


[jira] Updated: (UIMA-442) FileUtilsTest fail on Linux

Posted by "Michael Baessler (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-442?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Baessler updated UIMA-442:
----------------------------------

    Fix Version/s: 2.2

> 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.


[jira] Assigned: (UIMA-442) FileUtilsTest fail on Linux

Posted by "Michael Baessler (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-442?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Baessler reassigned UIMA-442:
-------------------------------------

    Assignee: Adam Lally

The code fragment below does not work on linux...

    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));


the local working directory is added to the base path when getCanonicalPath()
is call on it.

> 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.


[jira] Closed: (UIMA-442) FileUtilsTest fail on Linux

Posted by "Adam Lally (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-442?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adam Lally closed UIMA-442.
---------------------------


> 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.


[jira] Resolved: (UIMA-442) FileUtilsTest fail on Linux

Posted by "Adam Lally (JIRA)" <ui...@incubator.apache.org>.
     [ 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.