提交 7647e60d authored 作者: Noel Grandin's avatar Noel Grandin

only run mvcc tests in mvcc mode

上级 2b2e0c7e
...@@ -35,7 +35,7 @@ public class TestMvcc4 extends TestBase { ...@@ -35,7 +35,7 @@ public class TestMvcc4 extends TestBase {
@Override @Override
public void test() throws SQLException { public void test() throws SQLException {
if (config.networked) { if (config.networked || !config.mvcc) {
return; return;
} }
testSelectForUpdateAndUpdateConcurrency(); testSelectForUpdateAndUpdateConcurrency();
......
...@@ -43,6 +43,9 @@ public class TestMvccMultiThreaded2 extends TestBase { ...@@ -43,6 +43,9 @@ public class TestMvccMultiThreaded2 extends TestBase {
@Override @Override
public void test() throws SQLException, InterruptedException { public void test() throws SQLException, InterruptedException {
if (!config.mvcc) {
return;
}
testSelectForUpdateConcurrency(); testSelectForUpdateConcurrency();
} }
......
...@@ -50,6 +50,9 @@ public class TestMVTableEngine extends TestBase { ...@@ -50,6 +50,9 @@ public class TestMVTableEngine extends TestBase {
@Override @Override
public void test() throws Exception { public void test() throws Exception {
if (!config.mvStore) {
return;
}
testLobCopy(); testLobCopy();
testLobReuse(); testLobReuse();
testShutdownDuringLobCreation(); testShutdownDuringLobCreation();
......
...@@ -11,7 +11,6 @@ import java.sql.ResultSet; ...@@ -11,7 +11,6 @@ import java.sql.ResultSet;
import java.sql.SQLException; import java.sql.SQLException;
import java.sql.Statement; import java.sql.Statement;
import java.util.Random; import java.util.Random;
import org.h2.api.ErrorCode; import org.h2.api.ErrorCode;
import org.h2.test.TestBase; import org.h2.test.TestBase;
import org.h2.util.Task; import org.h2.util.Task;
...@@ -37,8 +36,11 @@ public class TestConcurrentUpdate extends TestBase { ...@@ -37,8 +36,11 @@ public class TestConcurrentUpdate extends TestBase {
@Override @Override
public void test() throws Exception { public void test() throws Exception {
if (!config.multiThreaded) {
return;
}
deleteDb("concurrent"); deleteDb("concurrent");
final String url = getURL("concurrent;MULTI_THREADED=TRUE", true); final String url = getURL("concurrent", true);
Connection conn = getConnection(url); Connection conn = getConnection(url);
Statement stat = conn.createStatement(); Statement stat = conn.createStatement();
stat.execute("create table test(id int primary key, name varchar)"); stat.execute("create table test(id int primary key, name varchar)");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论