[ 
http://jira.codehaus.org/browse/XFIRE-1027?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tomasz Sztelak resolved XFIRE-1027.
-----------------------------------

      Assignee: Tomasz Sztelak  (was: Dan Diephouse)
    Resolution: Fixed

Fixed

> OverwriteTest needs to pause between writes
> -------------------------------------------
>
>                 Key: XFIRE-1027
>                 URL: http://jira.codehaus.org/browse/XFIRE-1027
>             Project: XFire
>          Issue Type: Bug
>          Components: Generator
>    Affects Versions: 1.2.6
>         Environment: linux 2.6 + reiserfs + jdk6 on a core 2 duo 6600 on 
> Ubuntu
>            Reporter: Renaud Bruyeron
>            Assignee: Tomasz Sztelak
>             Fix For: 1.2.7
>
>         Attachments: patch-overwritetest.txt
>
>
> On a fast-enough machine running an OS with second-precision file timestamps 
> (like ubuntu linux), the test 
> xfire-generator/src/test/org/codehaus/xfire/generator/OverwriteTest.java 
> fails because it can run in sub-second time, which causes the test to fail:
> {noformat}
> WRITE #3
> Jun 11, 2007 10:30:06 AM org.codehaus.xfire.gen.Wsdl11Generator generate
> INFO: Generating code for WSDL at 
> file:/home/bruyeron/workspace3/xfire-trunk/xfire-generator/src/wsdl/oneway.wsdl
>  with a base URI of 
> file:/home/bruyeron/workspace3/xfire-trunk/xfire-generator/src/wsdl/oneway.wsdl
> Jun 11, 2007 10:30:06 AM 
> org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator generate
> INFO: Creating class org.codehaus.xfire.test.echo.SendMessagePortType
> Jun 11, 2007 10:30:06 AM 
> org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator generate
> INFO: Creating class org.codehaus.xfire.test.echo.SendMessageImpl
> org/codehaus/xfire/test/echo/ObjectFactory.java
> org/codehaus/xfire/test/echo/SendMessageClient.java
> org/codehaus/xfire/test/echo/SendMessageImpl.java
> org/codehaus/xfire/test/echo/SendMessagePortType.java
> l1 1181550606000
> l2 1181550606000
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.16 sec <<< 
> FAILURE!
> {noformat}
> The patch attached pauses the thread for 1s between writes to make sure that 
> the test cannot run faster than the filesystem timestamp resolution.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to