Author: peter_firmstone Date: Fri Nov 27 06:37:50 2015 New Revision: 1716802
URL: http://svn.apache.org/viewvc?rev=1716802&view=rev Log: Fix incomplete classpath in test in CheckBoomerangs Make sure we're also testing that RFC3986URLClassLoader doesn't cause any RuntimeThreadInheritanceLeak's, by adding it to this test in place of URLClassLoader. That completes regression testing for River 3.0: ant -f /home/ubuntu/NetBeansProjects/River-3.0/trunk/qa jtreg jtreg: Created dir: /home/ubuntu/NetBeansProjects/River-3.0/trunk/qa/jtreg/JTlib-tmp Moving 7 files to /home/ubuntu/NetBeansProjects/River-3.0/trunk/qa/jtreg/JTlib-tmp Moving 1 file to /home/ubuntu/NetBeansProjects/River-3.0/trunk/qa/jtreg/JTlib-tmp Test results: passed: 132 Results written to /home/ubuntu/NetBeansProjects/River-3.0/trunk/qa/jtreg/JTwork Moving 7 files to /home/ubuntu/NetBeansProjects/River-3.0/trunk/lib Moving 1 file to /home/ubuntu/NetBeansProjects/River-3.0/trunk/lib-ext Deleting directory /home/ubuntu/NetBeansProjects/River-3.0/trunk/qa/jtreg/JTlib-tmp Deleting: /home/ubuntu/NetBeansProjects/River-3.0/trunk/qa/jtreg/test.props BUILD SUCCESSFUL (total time: 15 minutes 53 seconds) Modified: river/jtsk/skunk/qa-refactor-namespace/trunk/qa/jtreg/net/jini/jeri/internal/runtime/runtimeThreadInheritanceLeak/RuntimeThreadInheritanceLeak.java river/jtsk/skunk/qa-refactor-namespace/trunk/qa/jtreg/net/jini/loader/pref/PreferredClassProvider/checkBoomerangs/CheckBoomerangs.java Modified: river/jtsk/skunk/qa-refactor-namespace/trunk/qa/jtreg/net/jini/jeri/internal/runtime/runtimeThreadInheritanceLeak/RuntimeThreadInheritanceLeak.java URL: http://svn.apache.org/viewvc/river/jtsk/skunk/qa-refactor-namespace/trunk/qa/jtreg/net/jini/jeri/internal/runtime/runtimeThreadInheritanceLeak/RuntimeThreadInheritanceLeak.java?rev=1716802&r1=1716801&r2=1716802&view=diff ============================================================================== --- river/jtsk/skunk/qa-refactor-namespace/trunk/qa/jtreg/net/jini/jeri/internal/runtime/runtimeThreadInheritanceLeak/RuntimeThreadInheritanceLeak.java (original) +++ river/jtsk/skunk/qa-refactor-namespace/trunk/qa/jtreg/net/jini/jeri/internal/runtime/runtimeThreadInheritanceLeak/RuntimeThreadInheritanceLeak.java Fri Nov 27 06:37:50 2015 @@ -50,6 +50,7 @@ import net.jini.export.Exporter; import net.jini.jeri.BasicILFactory; import net.jini.jeri.BasicJeriExporter; import net.jini.jeri.tcp.TcpServerEndpoint; +import org.apache.river.api.net.RFC3986URLClassLoader; public class RuntimeThreadInheritanceLeak implements Remote { @@ -81,7 +82,8 @@ public class RuntimeThreadInheritanceLea Exporter exporter = null; try { - ClassLoader loader = URLClassLoader.newInstance(new URL[0]); + // Test RFC3986URLClassLoader as well. + ClassLoader loader = RFC3986URLClassLoader.newInstance(new URL[0]); ReferenceQueue refQueue = new ReferenceQueue(); Reference loaderRef = new WeakReference(loader, refQueue); System.err.println("created loader: " + loader); Modified: river/jtsk/skunk/qa-refactor-namespace/trunk/qa/jtreg/net/jini/loader/pref/PreferredClassProvider/checkBoomerangs/CheckBoomerangs.java URL: http://svn.apache.org/viewvc/river/jtsk/skunk/qa-refactor-namespace/trunk/qa/jtreg/net/jini/loader/pref/PreferredClassProvider/checkBoomerangs/CheckBoomerangs.java?rev=1716802&r1=1716801&r2=1716802&view=diff ============================================================================== --- river/jtsk/skunk/qa-refactor-namespace/trunk/qa/jtreg/net/jini/loader/pref/PreferredClassProvider/checkBoomerangs/CheckBoomerangs.java (original) +++ river/jtsk/skunk/qa-refactor-namespace/trunk/qa/jtreg/net/jini/loader/pref/PreferredClassProvider/checkBoomerangs/CheckBoomerangs.java Fri Nov 27 06:37:50 2015 @@ -230,12 +230,15 @@ public class CheckBoomerangs extends Uni Naming.rebind(exchangeName, boom); System.err.println("Situation3:"); - String d = ".." + File.separator; - String d3 = d + d + d; +// String d = ".." + File.separator; +// String d3 = d + d + d; + String classpath = System.getProperty("test.class.path"); + System.err.println("ParentJVM Classpath: " + classpath); JavaVM jvm = new JavaVM("CheckBoomerangs", - " -Djava.class.path=" + TestParams.testClasses + - File.pathSeparator + TestParams.testClasses + - File.separator + d3 + d3 + d3 + "testlibrary" + + " -Djava.class.path=" + classpath + +// + TestParams.testClasses + +// File.pathSeparator + TestParams.testClasses + +// File.separator + d3 + d3 + d3 + "testlibrary" + " -Djava.security.policy" + System.getProperty("java.security.policy"), " situation3");
