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.
Hiberate core from branch 3_2_4_SP1_CP with Db2
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).
And this is the diff for the branch 3_2_4_SP1_CP.
Note: I only wrapped the test which was hanging on DB2.