提交 eb0d8686 authored 作者: Noel Grandin's avatar Noel Grandin

disable parts of the test that don't apply to in-memory mode

mostly because they rely on closing and re-opening the DB
上级 3bc33d61
......@@ -133,6 +133,9 @@ public class TestMVTableEngine extends TestBase {
}
private void testShutdownDuringLobCreation() throws Exception {
if (config.memory) {
return;
}
deleteDb(getTestName());
Connection conn = getConnection(getTestName());
Statement stat = conn.createStatement();
......@@ -200,6 +203,9 @@ public class TestMVTableEngine extends TestBase {
}
private void testLobCreationThenShutdown() throws Exception {
if (config.memory) {
return;
}
deleteDb(getTestName());
Connection conn = getConnection(getTestName());
Statement stat = conn.createStatement();
......@@ -258,6 +264,9 @@ public class TestMVTableEngine extends TestBase {
}
private void testAppendOnly() throws Exception {
if (config.memory) {
return;
}
deleteDb(getTestName());
Connection conn = getConnection(getTestName());
Statement stat = conn.createStatement();
......@@ -328,6 +337,9 @@ public class TestMVTableEngine extends TestBase {
}
private void testOldAndNew() throws SQLException {
if (config.memory) {
return;
}
Connection conn;
deleteDb(getTestName());
String urlOld = getURL(getTestName() + ";MV_STORE=FALSE", true);
......@@ -421,6 +433,9 @@ public class TestMVTableEngine extends TestBase {
}
private void testGarbageCollectionForLOB() throws SQLException {
if (config.memory) {
return;
}
Connection conn;
Statement stat;
deleteDb(getTestName());
......@@ -655,6 +670,9 @@ public class TestMVTableEngine extends TestBase {
}
private void testShrinkDatabaseFile() throws Exception {
if (config.memory) {
return;
}
deleteDb(getTestName());
String dbName = getTestName() + ";MV_STORE=TRUE";
Connection conn;
......@@ -718,6 +736,9 @@ public class TestMVTableEngine extends TestBase {
}
private void testTwoPhaseCommit() throws Exception {
if (config.memory) {
return;
}
Connection conn;
Statement stat;
deleteDb(getTestName());
......@@ -745,6 +766,9 @@ public class TestMVTableEngine extends TestBase {
}
private void testRecover() throws Exception {
if (config.memory) {
return;
}
Connection conn;
Statement stat;
deleteDb(getTestName());
......@@ -790,6 +814,9 @@ public class TestMVTableEngine extends TestBase {
}
private void testSeparateKey() throws Exception {
if (config.memory) {
return;
}
Connection conn;
Statement stat;
deleteDb(getTestName());
......@@ -815,6 +842,9 @@ public class TestMVTableEngine extends TestBase {
}
private void testRollbackAfterCrash() throws Exception {
if (config.memory) {
return;
}
Connection conn;
Statement stat;
deleteDb(getTestName());
......@@ -946,6 +976,9 @@ public class TestMVTableEngine extends TestBase {
}
private void testWriteDelay() throws Exception {
if (config.memory) {
return;
}
Connection conn;
Statement stat;
ResultSet rs;
......@@ -1003,6 +1036,9 @@ public class TestMVTableEngine extends TestBase {
}
private void testReopen() throws SQLException {
if (config.memory) {
return;
}
Connection conn;
Statement stat;
deleteDb(getTestName());
......@@ -1017,6 +1053,9 @@ public class TestMVTableEngine extends TestBase {
}
private void testBlob() throws SQLException, IOException {
if (config.memory) {
return;
}
deleteDb(getTestName());
String dbName = getTestName() + ";MV_STORE=TRUE";
Connection conn;
......@@ -1044,6 +1083,9 @@ public class TestMVTableEngine extends TestBase {
}
private void testEncryption() throws Exception {
if (config.memory) {
return;
}
deleteDb(getTestName());
String dbName = getTestName() + ";MV_STORE=TRUE";
Connection conn;
......@@ -1086,6 +1128,9 @@ public class TestMVTableEngine extends TestBase {
}
private void testReadOnly() throws Exception {
if (config.memory) {
return;
}
deleteDb(getTestName());
String dbName = getTestName() + ";MV_STORE=TRUE";
Connection conn;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论