Skip to content

Commit 5c661ab

Browse files
committed
skip tests on Informix
1 parent aa6c612 commit 5c661ab

File tree

4 files changed

+15
-1
lines changed

4 files changed

+15
-1
lines changed

hibernate-core/src/test/java/org/hibernate/orm/test/mapping/basic/XmlMappingTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import org.hibernate.annotations.JdbcTypeCode;
1111
import org.hibernate.cfg.AvailableSettings;
1212
import org.hibernate.community.dialect.AltibaseDialect;
13+
import org.hibernate.community.dialect.InformixDialect;
1314
import org.hibernate.dialect.HANADialect;
1415
import org.hibernate.community.dialect.DerbyDialect;
1516
import org.hibernate.dialect.OracleDialect;
@@ -136,6 +137,7 @@ public void verifyReadWorks(SessionFactoryScope scope) {
136137
@SkipForDialect(dialectClass = SybaseDialect.class, matchSubTypes = true, reason = "Sybase doesn't support comparing LOBs with the = operator")
137138
@SkipForDialect(dialectClass = OracleDialect.class, matchSubTypes = true, reason = "Oracle doesn't support comparing JSON with the = operator")
138139
@SkipForDialect(dialectClass = AltibaseDialect.class, reason = "Altibase doesn't support comparing CLOBs with the = operator")
140+
@SkipForDialect(dialectClass = InformixDialect.class, reason = "Blobs are not allowed in this expression")
139141
public void verifyComparisonWorks(SessionFactoryScope scope) {
140142
scope.inTransaction(
141143
(session) -> {

hibernate-core/src/test/java/org/hibernate/orm/test/timezones/UTCNormalizedInstantTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010
import java.util.TimeZone;
1111

1212
import org.hibernate.annotations.JdbcTypeCode;
13+
import org.hibernate.community.dialect.InformixDialect;
1314
import org.hibernate.dialect.Dialect;
1415
import org.hibernate.dialect.SybaseDialect;
16+
import org.hibernate.testing.orm.junit.SkipForDialect;
1517
import org.hibernate.type.descriptor.DateTimeUtils;
1618

1719
import org.hibernate.testing.jdbc.SharedDriverManagerConnectionProviderImpl;
@@ -64,6 +66,8 @@ else if ( dialect.getDefaultTimestampPrecision() == 6 ) {
6466
});
6567
}
6668

69+
@SkipForDialect(dialectClass = InformixDialect.class,
70+
reason = "Informix driver misbehaves")
6771
@Test void testWithSystemTimeZone(SessionFactoryScope scope) {
6872
final TimeZone timeZoneBefore = TimeZone.getDefault();
6973
TimeZone.setDefault( TimeZone.getTimeZone( "CET" ) );

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)