harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Ivanov" <ivavladi...@gmail.com>
Subject Re: [drlvm][testing] how specify VM options for cunit tests?
Date Tue, 22 May 2007 09:30:10 GMT
On 5/22/07, Alexey Varlamov <alexey.v.varlamov@gmail.com> wrote:
> 2007/5/22, Vladimir Ivanov <ivavladimir@gmail.com>:
> > Hello,
> > I have a question about run of cunit tests: how I can specify
> > additional parameters for VM?
> > Now 'cunit.test.xml' does not support additional parameters (like
> > 'test.vmargs'). When I tried to add this option and specify gc_cc to
> > use I saw 'debug' window with log like:
> >     [echo] ## Executing C unit test: test_java_attrs
> >     [exec] Result: -1073741819
> >     [echo] INFO: TEST test_jthread_get_priority start
> >     [echo] ## TEST FAILED
> >     [echo] ## Executing C unit test: test_java_basic
> >     [exec] Result: -1073741819
> >
> > Is it expected behavior?
> >
> > As I see, the vm started as: JNI_CreateJavaVM(&GLOBAL_VM, &jni_env, &args);
> > ,i.e. parameter like '-XX:vm.dlls=gc_cc.dll' is passed to vm.
> >
> > Command to run is (after update):
> > build.bat cunit.test -Dtest.vmargs=-XX:vm.dlls=gc_cc.dll
>

> Wrapping the complex arg with quotes should do the trick:
> build.bat cunit.test -Dtest.vmargs="-XX:vm.dlls=gc_cc.dll"
> At least it works fine with other tests.

Thanks, it works. But why VM crashed for non-quoted arg?

>
> >
> > Note, command build.bat cunit.test -Dtest.vmargs=-showversion works fine.
> >
> >  thanks, Vladimir
> >
>

Mime
View raw message