Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix QUnit to allow tests run from Java without Qore #3857

Closed
davidnich opened this issue Mar 25, 2020 · 0 comments
Closed

fix QUnit to allow tests run from Java without Qore #3857

davidnich opened this issue Mar 25, 2020 · 0 comments

Comments

@davidnich
Copy link
Contributor

davidnich commented Mar 25, 2020

ex:

david@meteor:~/src/Qorus/git/qorus/test/java$ java -cp /Users/david/src/Qorus/test/jar/qorus-client.jar:/Users/david/src/Qorus/test/jar/qorus-test.jar:/Users/david/src/Qorus/test/jar/qore-jni.jar:. -Djava.library.path=/usr/local/lib TestJob
Exception in thread "main" org.qore.jni.QoreExceptionWrapper: RUNTIME-CAST-ERROR: cannot cast from type 'nothing' to 'list<string>'
	at org.qore.jni.QoreJavaApi.newObjectSave0(Native Method)
	at org.qore.jni.QoreJavaApi.newObjectSave(QoreJavaApi.java:178)
	at com.qoretechnologies.qorus.test.QorusJobTest.<init>(QorusJobTest.java:37)
	at TestJob.main(TestJob.java:11)

This is because there is no ARGV value when Qore is initialized from Java in QUnit.qm:732::

            p_argv = cast<list<string>>(ARGV);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant