RFR: JDK-8217473: SA: Tests using ClhsdbLauncher fail on SAP docker containers

Jean Christophe Beyler jcbeyler at google.com
Tue Feb 5 03:37:29 UTC 2019


Hi David,

Good point :).

Thanks!
Jc

On Mon, Feb 4, 2019 at 5:13 PM David Holmes <david.holmes at oracle.com> wrote:

> Hi Jc,
>
> On 5/02/2019 3:47 am, Jean Christophe Beyler wrote:
> > Hi Jini,
> >
> > The webrev looks good to me but I was wondering why you are changing the
> > tests really. For example:
> >
> http://cr.openjdk.java.net/~jgeorge/8217473/webrev.01/test/hotspot/jtreg/serviceability/sa/ClhsdbAttach.java.html
> >
> > The main method already is declared to be throwing the top class
> > Exception. It seems to me that you could then skip updating the tests:
> >
> > +        } catch (SkippedException se) {
> > +            throw se;
> >
> > no?
> >
> > Probably I'm missing something but seemed like you didn't need to add
> > this if you were just rethrowing it.
>
> It has to be caught to be rethrown, otherwise it is caught by the
> following clause (which catches all Exception types) and a
> RuntimeException thrown instead.
>
> David
> -----
>
> > On Wed, Jan 30, 2019 at 8:39 PM Jini George <jini.george at oracle.com
> > <mailto:jini.george at oracle.com>> wrote:
> >
> >     Thank you, David!
> >
> >     - Jini.
> >
> >     On 1/31/2019 7:45 AM, David Holmes wrote:
> >      > Hi Jini,
> >      >
> >      > This looks reasonable to me.
> >      >
> >      > Thanks,
> >      > David
> >      >
> >      > On 30/01/2019 9:59 pm, Jini George wrote:
> >      >> Requesting reviews for:
> >      >>
> >      >> BugID: https://bugs.openjdk.java.net/browse/JDK-8217473
> >      >>
> >     Webrev:
> http://cr.openjdk.java.net/~jgeorge/8217473/webrev.01/index.html
> >      >>
> >      >> The patch includes changes to use SkippedException to skip the
> >     tests
> >      >> when canPtraceAttachLinux() in Platform.java returns false.
> >      >>
> >      >> Thanks,
> >      >> Jini.
> >      >>
> >
> >
> >
> > --
> >
> > Thanks,
> > Jc
>


-- 

Thanks,
Jc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20190204/700390e7/attachment-0001.html>


More information about the serviceability-dev mailing list