[Laszlo-dev] test failure in lztest-selftest

Henry Minsky hminsky at laszlosystems.com
Tue May 26 14:06:09 PDT 2009


OK I can update the test, but it worries me that this failed, and the build
doesn't fail. Which ant target is being used for the build? I ran "ant
runlzunit", which fires up these tests in a browser, for swf8, and dhtml:

  <target name="runlzunit" depends="init" description="Run lzunit test apps"
unless="skip.runlzunit">
    <ant target="lztest" />
    <ant target="runbrowserlzunit-swf8" />
    <ant target="runbrowserlztest-swf8" />
    <ant target="runbrowserlzunit-dhtml" />
    <ant target="runbrowserlztest-dhtml" />
  </target>




On Tue, May 26, 2009 at 4:55 PM, P T Withington <ptw at laszlosystems.com>wrote:

> I'm pretty sure the test is conditionalized in smokecheck to work around
> these bugs.  Basically in swf8 if you ask
>
> NaN === NaN
>
> it returns true.  ECMA calls for it to return false, because NaN is not
> supposed to be comparable to anything else including itself.
>
> My guess:  Ben copied the tests from smokecheck, smokecheck has since been
> updated, but these 'lztest' copies have not.
>
>
> On 2009-05-26, at 14:05EDT, Henry Minsky wrote:
>
>  I was testing a change and decided to run the "ant runlzunit" suite, and
>> it
>> returned a failure in the test
>> test/lztest/lztest-selftest.lzx
>>
>> I ran it manually with the debugger, and got this
>>
>>
>>
>>
>> http://localhost:8080/trunk6/test/lztest/lztest-selftest.lzx?lzr=swf8&debug=true
>>
>> ERROR: In suite JavaScript Semantics, test 9, failed assertion: NotSame
>> undefined expected anything but NaN, got
>> ERROR: In suite Tautologies, test 9, failed assertion: NotSame undefined
>> expected anything but NaN, got
>> ERROR: Failed 2 suites, JavaScript Semantics, Tautologies
>>
>>
>> Any idea if this is a real bug ? Seem odd it wasn't caught by a nightly
>> run
>> of the test suite
>>
>> --
>> Henry Minsky
>> Software Architect
>> hminsky at laszlosystems.com
>>
>
>


-- 
Henry Minsky
Software Architect
hminsky at laszlosystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20090527/6e55e6a8/attachment.html


More information about the Laszlo-dev mailing list