|
@@ -121,12 +121,15 @@ public class BufferSizeTest extends ClientBase {
|
|
private void testStartupFailure(File testDir, String failureMsg) throws Exception {
|
|
private void testStartupFailure(File testDir, String failureMsg) throws Exception {
|
|
stopServer();
|
|
stopServer();
|
|
// Point server at testDir
|
|
// Point server at testDir
|
|
|
|
+ File oldTmpDir = tmpDir;
|
|
tmpDir = testDir;
|
|
tmpDir = testDir;
|
|
try {
|
|
try {
|
|
startServer();
|
|
startServer();
|
|
fail(failureMsg);
|
|
fail(failureMsg);
|
|
} catch (IOException e) {
|
|
} catch (IOException e) {
|
|
LOG.info("Successfully caught IOException: " + e);
|
|
LOG.info("Successfully caught IOException: " + e);
|
|
|
|
+ } finally {
|
|
|
|
+ tmpDir = oldTmpDir;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|