harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Varlamov" <alexey.v.varla...@gmail.com>
Subject Re: [j9][testing] some classlib unit tests fail
Date Tue, 17 Oct 2006 09:37:26 GMT
2006/10/17, Boris Kuznetsov <boris.v.kuznetsov@gmail.com>:
> I think that the best choice is to fix the test by implementing test's
> security manager. It would make the test be independent from
> environment.
>
> As a short-term solution the test run script may be fixed (use option
> '-Djava.security.policy==').

Yes, all above is perfectly right. Thanks for volunteering ;)

>
> Thanks,
> Boris
>
> On 10/17/06, Fedotov, Alexei A <alexei.a.fedotov@intel.com> wrote:
> > Hello Boris,
> >
> > I'm not an expert in security. I even couldn't keep a pin of my credit
> > card secured from my wife. :-)
> >
> > Anyway, few weeks ago I faced a problem with tests which failed due to
> > java.policy file forgotten by a release engineer in his home directory.
> >
> > We decided that changing the java.security.policy property and invoking
> > refresh() is a hacker style, so we had to write our security manager
> > implementation. I have just checked that the guy who actually made the
> > fix implemented the property hack.
> >
> > That is why I vote for the second choice. It is much simpler and we can
> > migrate to the first method later if needed.
> >
> > Does it make sense?
> >
> > With best regards,
> > Alexei Fedotov,
> > Intel Middleware Products Division
> >
> >
> > >-----Original Message-----
> > >From: Boris Kuznetsov [mailto:boris.v.kuznetsov@gmail.com]
> > >Sent: Wednesday, October 04, 2006 1:24 PM
> > >To: harmony-dev@incubator.apache.org
> > >Subject: Re: [j9][testing] some classlib unit tests fail
> > >
> > >The tests mentioned in HARMONY-1674
> > ><http://issues.apache.org/jira/browse/HARMONY-1674> depend on default
> > >system policy file.
> > >But if user policy file exists than, according to the spec, it is
> > >added to system policy. It leads to the tests failures.
> > >
> > >There are two options:
> > >1.     Rewrite the tests.
> > >2.     Use '-Djava.security.policy' to specify policy file and ignore
> > all
> > >others:
> > >-Djava.security.policy==${java.home}/lib/security/java.policy
> > >
> > >I suggest the second one.
> > >Comments?
> > >
> > >On 10/4/06, Elena Semukhina <elena.semukhina@gmail.com> wrote:
> > >> Hello, all,
> > >>
> > >> AFAIK, "ant test" should give 100% pass rate on j9 but I have 5
> > failures
> > >> which seem to be dependent on environment.
> > >> I've uploaded the results at
> > >>
> > >http://harmonytest.org/testapp.do?method=showrun&id=9&perPage=100&page=
> > 1&na
> > >me=&result=0&jira=0
> > >>
> > >> There are also two JIRA issues detailing this:
> > >> HARMONY-1664<http://issues.apache.org/jira/browse/HARMONY-1664> and
> > >> HARMONY-1674 <http://issues.apache.org/jira/browse/HARMONY-1664>
> > >>
> > >> Can anyone help in analyzing the problem?
> > >>
> > >> --
> > >> Thanks,
> > >> Elena
> > >>
> > >>
> > >
> > >
> > >--
> > >Best regards,
> > >Boris Kuznetsov
> > >Intel Middleware Products Division
> > >
> > >---------------------------------------------------------------------
> > >Terms of use : http://incubator.apache.org/harmony/mailing.html
> > >To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> > >For additional commands, e-mail: harmony-dev-help@incubator.apache.org
> >
>
>
> --
> Best regards,
> Boris Kuznetsov
> Intel Middleware Products Division
>
> ---------------------------------------------------------------------
> Terms of use : http://incubator.apache.org/harmony/mailing.html
> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>
>

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Mime
View raw message