Page 1 of 1

How is this test failing?

Posted: Fri Feb 10, 2017 5:12 am
by mwieder
on make check:

lcb/stdlib/assert.lcb:6:13: error: Parsing error: syntax error
expect true is true
^

Re: How is this test failing?

Posted: Fri Feb 10, 2017 8:52 am
by livecodeali
I think the only way that could happen is if your lc-compile is out of date. Try trashing the cached build products (lc-compile, lc-bootstrap-compile, etc) and make all again.

Re: How is this test failing?

Posted: Sat Feb 11, 2017 3:01 am
by mwieder
Ali-

Thanks. That did the trick.
now I'm up to

ERROR[Load Modules]: module format not supported
ERROR: ../_tests/_build/lcb/compiler/bytecode.lcm: Failed to list handlers

Re: How is this test failing?

Posted: Mon Feb 13, 2017 10:28 am
by peter-b
I think there are some missing dependency rules in the build system at the moment. You may have to nuke it from orbit:

Code: Select all

rm -rf linux-x86_64-bin build-linux-x86_64

Re: How is this test failing?

Posted: Mon Feb 13, 2017 6:32 pm
by mwieder
Thanks. That's what I did to get this far. But I'll do it again to see if a second pass helps.

Update: second pass fixed things up.
So yeah, it does look like there's still something in the scripts, but there's a workaround.

Update #2:
so cleaning out both directories allowed me to compile with no errors, but that brought me back to the error in tests:

ERROR[Load Modules]: module format not supported
ERROR: ../_tests/_build/lcb/compiler/bytecode.lcm: Failed to list handlers
make[2]: *** [lcb-check] Error 1

The missing piece was
rm -rf _tests

and then rerunning 'make check'. I'm guessing the .lcm files were the old format.

Standalone tests are failing (TestStandaloneInclusions, TestSavingStandalone) but I see that's a WIP.
And I had to intervene manually twice because of stackFileVersion problems, and the debugger popped up on a revDeleteSomethig error.

Re: How is this test failing?

Posted: Tue Feb 14, 2017 7:52 am
by mwieder
(talking to myself here...)
_TestSavingStandalone.stack.livecode.png
The tests for saving standalones are failing, apparently because the stackFileVersion is being set to 2.4, and my preferences are set to preserve stack file formats.
This requires manual intervention to allow the test(s) to continue.
Selecting 7.0 seems to be the proper response here.

And yes, I did remove both standalonebuilder/* directories before running the tests.

Re: How is this test failing?

Posted: Mon Feb 20, 2017 11:02 am
by peter-b
Hmm, we should probably get the IDE to ignore user preference files when running the IDE tests. Could you please file a bug report about it for us please?

Re: How is this test failing?

Posted: Mon Feb 20, 2017 11:35 pm
by mwieder

Re: How is this test failing?

Posted: Tue Mar 07, 2017 10:22 pm
by mwieder
lcb/stdlib/java.lcb:20:1: error: Unable to find imported module 'com.livecode.java'
use com.livecode.java
^