You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Marshall Schor (JIRA)" <ui...@incubator.apache.org> on 2007/01/13 14:35:27 UTC
[jira] Created: (UIMA-188) AnalysisEngine_implTest incorrectly
failing on PowerMac platform
AnalysisEngine_implTest incorrectly failing on PowerMac platform
----------------------------------------------------------------
Key: UIMA-188
URL: https://issues.apache.org/jira/browse/UIMA-188
Project: UIMA
Issue Type: Bug
Components: Build, Packaging and Test
Reporter: Marshall Schor
Assigned To: Adam Lally
Priority: Minor
The uima core AnalysEngine_implTest has this code in it:
// test that CAS Consumer ran
File outFile = JUnitExtension.getFile("CpmOutput.txt");
assertTrue(outFile.lastModified() >= startTime);
On the PowerMac platform, this test fails (but not in "debug" Eclipse running !). It fails because the lastModified() always returns 000 as the least significant digits of the time, whereas the starTime is apparantly accurate to all significant digits.
Need to come up with a more robust way to determine the CAS Consumer ran.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (UIMA-188) AnalysisEngine_implTest incorrectly
failing on PowerMac platform
Posted by "Adam Lally (JIRA)" <ui...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adam Lally closed UIMA-188.
---------------------------
Resolution: Fixed
Fix Version/s: 2.1
Fixed by deleting the output file before running the AE, and then asserting that the file exists after the AE has run.
> AnalysisEngine_implTest incorrectly failing on PowerMac platform
> ----------------------------------------------------------------
>
> Key: UIMA-188
> URL: https://issues.apache.org/jira/browse/UIMA-188
> Project: UIMA
> Issue Type: Bug
> Components: Build, Packaging and Test
> Reporter: Marshall Schor
> Assigned To: Adam Lally
> Priority: Minor
> Fix For: 2.1
>
>
> The uima core AnalysEngine_implTest has this code in it:
> // test that CAS Consumer ran
> File outFile = JUnitExtension.getFile("CpmOutput.txt");
> assertTrue(outFile.lastModified() >= startTime);
> On the PowerMac platform, this test fails (but not in "debug" Eclipse running !). It fails because the lastModified() always returns 000 as the least significant digits of the time, whereas the starTime is apparantly accurate to all significant digits.
> Need to come up with a more robust way to determine the CAS Consumer ran.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (UIMA-188) AnalysisEngine_implTest incorrectly
failing on PowerMac platform
Posted by "Adam Lally (JIRA)" <ui...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adam Lally closed UIMA-188.
---------------------------
Resolution: Fixed
Changed test to set file to 0-length, then after AE has run check that length is > 0. Seems to work now, on both Windows and Linux.
> AnalysisEngine_implTest incorrectly failing on PowerMac platform
> ----------------------------------------------------------------
>
> Key: UIMA-188
> URL: https://issues.apache.org/jira/browse/UIMA-188
> Project: UIMA
> Issue Type: Bug
> Components: Build, Packaging and Test
> Reporter: Marshall Schor
> Assigned To: Adam Lally
> Priority: Minor
> Fix For: 2.1
>
>
> The uima core AnalysEngine_implTest has this code in it:
> // test that CAS Consumer ran
> File outFile = JUnitExtension.getFile("CpmOutput.txt");
> assertTrue(outFile.lastModified() >= startTime);
> On the PowerMac platform, this test fails (but not in "debug" Eclipse running !). It fails because the lastModified() always returns 000 as the least significant digits of the time, whereas the starTime is apparantly accurate to all significant digits.
> Need to come up with a more robust way to determine the CAS Consumer ran.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Reopened: (UIMA-188) AnalysisEngine_implTest incorrectly
failing on PowerMac platform
Posted by "Adam Lally (JIRA)" <ui...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adam Lally reopened UIMA-188:
-----------------------------
The fix causes test to fail in other circumstances. Apparently File.delete() can't be relied upon to actually delete the file.
> AnalysisEngine_implTest incorrectly failing on PowerMac platform
> ----------------------------------------------------------------
>
> Key: UIMA-188
> URL: https://issues.apache.org/jira/browse/UIMA-188
> Project: UIMA
> Issue Type: Bug
> Components: Build, Packaging and Test
> Reporter: Marshall Schor
> Assigned To: Adam Lally
> Priority: Minor
> Fix For: 2.1
>
>
> The uima core AnalysEngine_implTest has this code in it:
> // test that CAS Consumer ran
> File outFile = JUnitExtension.getFile("CpmOutput.txt");
> assertTrue(outFile.lastModified() >= startTime);
> On the PowerMac platform, this test fails (but not in "debug" Eclipse running !). It fails because the lastModified() always returns 000 as the least significant digits of the time, whereas the starTime is apparantly accurate to all significant digits.
> Need to come up with a more robust way to determine the CAS Consumer ran.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira