Integrated: 8258799 : [Testbug] RandomCommandsTest must check if tested directive is added via jcmd
    Nils Eliasson 
    neliasso at openjdk.java.net
       
    Wed Feb  3 16:04:55 UTC 2021
    
    
  
On Tue, 2 Feb 2021 21:55:17 GMT, Nils Eliasson <neliasso at openjdk.org> wrote:
> RandomCommandsTest.java is checking a mix of valid and invalid compilecommands and compiler directives. When they fail they have different behaviour:
> 
> A compilecommand that is malformed will result in a printed error, and then the VM continues. 
> A compiler directive that is malformed, that is added via commandline, will abort the VM, much like any other VM-flag would. 
> A compiler directive that is malformed, that is added via jcmd will print an error, and the VM continues - just like with any other jcmd.
> 
> The RandomCommandsTest fails when generating a malformed compiler directive and adding it via jcmd - because it expects the VM to abort.
> 
> This patch fixes that.
This pull request has now been integrated.
Changeset: 472bf629
Author:    Nils Eliasson <neliasso at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/472bf629
Stats:     19 lines in 2 files changed: 16 ins; 0 del; 3 mod
8258799: [Testbug] RandomCommandsTest must check if tested directive is added via jcmd
Reviewed-by: kvn, iignatyev
-------------
PR: https://git.openjdk.java.net/jdk/pull/2364
    
    
More information about the hotspot-compiler-dev
mailing list