Wrap transactions in try/catch in tests

Description

Some tests doesn't wraps transactions in try/catch blocks, causing the testsuite to "hang" waiting for the unfinished transaction to complete, which never happens.

This is currently happening in CGLIBInstrumentationTest, which calls TestLazyPropertyCustomTypeExecutable. This test fails on DB2, but as the transaction was started and not finished, the "drop tables" from the teardown is blocked indefinitely.

Environment

Hiberate core from branch 3_2_4_SP1_CP with Db2

Activity

Show:
Juraci Paixão Kröhling
September 26, 2008, 7:33 PM

Attached is a diff for trunk. As the InstrumentTest is not the same in trunk and branch 3_2_4_SP1_CP, they should no be compatible (because of this file).

Juraci Paixão Kröhling
September 26, 2008, 7:35 PM

And this is the diff for the branch 3_2_4_SP1_CP.

Juraci Paixão Kröhling
September 26, 2008, 7:36 PM

Note: I only wrapped the test which was hanging on DB2.

Assignee

Juraci Paixão Kröhling

Reporter

Juraci Paixão Kröhling

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure