Uploading derby-4967-locking-2, which makes the existing test LockInterruptTest
assert that the interrupt flag is set when we see 08000 (CONN_INTERRUPT).
This was not the case before derby-4967-locking-1 was committed.
Note: On Solaris, the test only asserts the flag this if one of the following conditions hold:
- the flag derbyTesting.safeSolarisInterrupts is true. This can be used for force the assert to run
for Solaris with Java 1.6 and lower. The assert will only succeed then if the Java flag -XX:-UseVMInterruptibleIO is used.
- the test is running on Java 1.7 or higher
If the test is skipped, we do a println to indicate this (iff derby.tests.debug is true).
On other platforms we always do the assert.
BaseTestCase has been extended with two methods to allows tests to determine if they are running with safe Solaris: #isSolaris and #isSafeSolarisInterrupts