Re: RFR(s): 8027810 RMI CheckUsage tests should be deleted

2014-02-20 Thread Stuart Marks
OK, thanks. Unfortunately I don't think the "static int run()" technique can be applied to rmiregistry and rmid, since a significant part of testing them -- apart from their usage messages :-) -- involves operating within a fairly strict security policy. But it's good to keep this in mind. s

Re: RFR(s): 8027810 RMI CheckUsage tests should be deleted

2014-02-20 Thread Mandy Chung
Thumbs up. FYI - jdeps follows the langtools convention to define a static int run(String... args) method that doesn't exit but instead returns the error exit code (whereas the main method will exit with an error code) so that the test can test the tool with different options in the same VM a

RFR(s): 8027810 RMI CheckUsage tests should be deleted

2014-02-20 Thread Stuart Marks
Hi all, There are a couple of RMI tests that do nothing except check the usage message emitted by the 'rmiregistry' and 'rmid' commands when given invalid command-line options. Since two bugs have occurred in these tests, I have determined that the overhead of maintaining these tests outweighs