http://cr.openjdk.java.net/~iignatyev//8210112/webrev.00/index.html
> 2375 lines changed: 322 ins; 1662 del; 391 mod

Hi all,

could you please review the patch which removes jdk.testlibrary.ProcessTools 
and its friends and replaces all theirs usages w/ corresponding classes from 
jdk.test.lib.process?

there were a few differences b/w implementations which are addressed by the 
patch:
 - j.t.l.p.ProcessTools missed executeProcess(ProcessBuilder, String) method
 - j.t.l.p.OutputAnalyzer didn't have shouldMatchByLine methods family
 - j.t.l.p.OutputBuffer was a very rudimentary and didn't serve any purposes, 
while j.t.OutputBuffer provided lazy access to a process's cout, cerr and 
exitcode. I have changed j.t.l.p.OutputBuffer to be an interface w/ two 
implementations LazyOutputBuffer and EagerOutputBuffer, and updated 
j.t.l.p.OutputAnalyzer to get values from an OutputBuffer instead of storing 
them.
 - j.t.l.p.ProcessTools::createJavaProcessBuilder always adds '-cp', but 
j.t.ProcessTools::createJavaProcessBuilder did not. I have identified tests 
which really depend on absence of '-cp' and updated them to create 
ProcessBuilder directly, namely JavaClassPathTest and 
AppendToClassPathModuleTest.

the rest of the patch is straightforward change of used classes w/ adding 
@library /test/lib if necessary and removing @library /lib/testlibrary if 
possible.  

webrev: http://cr.openjdk.java.net/~iignatyev//8210112/webrev.00/index.html
testing: tier1-tier3 + :jdk_svc
JBS: https://bugs.openjdk.java.net/browse/JDK-8210112

Thanks,
-- Igor 

Reply via email to