Skip to content

Commit d596bb3

Browse files
committed
skip tests on Informix
1 parent aa6c612 commit d596bb3

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

hibernate-core/src/test/java/org/hibernate/orm/test/tm/CMTTest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import org.hibernate.ScrollableResults;
1212
import org.hibernate.Session;
1313
import org.hibernate.cfg.AvailableSettings;
14+
import org.hibernate.community.dialect.InformixDialect;
1415
import org.hibernate.dialect.CockroachDialect;
1516
import org.hibernate.dialect.SQLServerDialect;
1617
import org.hibernate.engine.spi.SessionFactoryImplementor;
@@ -279,7 +280,10 @@ public void testConcurrentCachedQueries(SessionFactoryScope scope) throws Except
279280
feature = DialectFeatureChecks.DoesReadCommittedCauseWritersToBlockReadersCheck.class, reverse = true,
280281
comment = "write locks block readers"
281282
)
282-
@SkipForDialect(dialectClass = CockroachDialect.class, reason = "Cockroach uses SERIALIZABLE by default and seems to fail reading a row that is exclusively locked by a different TX")
283+
@SkipForDialect(dialectClass = CockroachDialect.class,
284+
reason = "Cockroach uses SERIALIZABLE by default and seems to fail reading a row that is exclusively locked by a different TX")
285+
@SkipForDialect(dialectClass = InformixDialect.class,
286+
reason = "Informix simply fails to obtain the lock with 'Could not do a physical-order read to fetch next row'")
283287
public void testConcurrentCachedDirtyQueries(SessionFactoryScope scope) throws Exception {
284288
final TransactionManager transactionManager = TestingJtaPlatformImpl.INSTANCE.getTransactionManager();
285289
try {

hibernate-core/src/test/java/org/hibernate/orm/test/type/contributor/LiteralRenderingTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import java.util.TimeZone;
2626
import java.util.UUID;
2727

28+
import org.hibernate.community.dialect.InformixDialect;
2829
import org.hibernate.query.criteria.HibernateCriteriaBuilder;
2930
import org.hibernate.query.criteria.JpaCriteriaQuery;
3031

@@ -35,13 +36,16 @@
3536
import org.hibernate.testing.orm.junit.ServiceRegistry;
3637
import org.hibernate.testing.orm.junit.SessionFactory;
3738
import org.hibernate.testing.orm.junit.SessionFactoryScope;
39+
import org.hibernate.testing.orm.junit.SkipForDialect;
3840
import org.junit.jupiter.params.ParameterizedTest;
3941
import org.junit.jupiter.params.provider.MethodSource;
4042

4143
@ServiceRegistry
4244
@DomainModel( standardModels = StandardDomainModel.GAMBIT )
4345
@SessionFactory
4446
@JiraKey(value = "HHH-15590")
47+
@SkipForDialect(dialectClass = InformixDialect.class,
48+
reason = "Informix does not support binary literals")
4549
public class LiteralRenderingTest {
4650

4751
public static List<Object> literalValues() throws Exception {

0 commit comments

Comments
 (0)