// Share the main thread's configuration with the server side threads.
private static volatile TestConfiguration thisConf;
protected static Test makeSuite(String name)
{
BaseTestSuite suite = new BaseTestSuite(name);
Test est = TestConfiguration.embeddedSuite(
InterruptResilienceTest.class);
Test cst = TestConfiguration.clientServerSuite(
InterruptResilienceTest.class);
est = TestConfiguration.singleUseDatabaseDecorator(est);
cst = TestConfiguration.singleUseDatabaseDecorator(cst);
// Cut down on running time:
Properties p = new Properties();
p.put("derby.system.durability", "test");
p.put("derby.infolog.append", "true");
// we'll force interrupts and thus serious errors, which with
// ibm jvms would result in javacore files, which aren't of
// interest if the test passes. Setting the stream error level
// so we don't get those javacores.
p.put("derby.stream.error.extendedDiagSeverityLevel", "50000");
suite.addTest(
new SystemPropertyTestSetup(est, p, true));
suite.addTest(
new SystemPropertyTestSetup(cst, p, true));
return suite;
}