{
runTest(new MTOperation[][]
{
{
// thread 0
new MTOperation(MTOperation.TM_BEGIN, 10),
new MTOperation(MTOperation.TM_GET_STATUS),
}
,
{
// thread 1
new MTOperation(MTOperation.TM_GET_STATUS),
new MTOperation(MTOperation.XX_WAIT_FOR, 10),
new MTOperation(MTOperation.TM_RESUME, 10),
new MTOperation(MTOperation.TM_GET_STATUS),
new MTOperation(MTOperation.TX_COMMIT, 10, new RollbackException()),
new MTOperation(MTOperation.TM_GET_STATUS),
}
});
}
else
{
runTest(new MTOperation[][]
{
{
// thread 0
new MTOperation(MTOperation.TM_BEGIN, 10),
new MTOperation(MTOperation.TM_GET_STATUS),
}
,
{
// thread 1
new MTOperation(MTOperation.TM_GET_STATUS),
new MTOperation(MTOperation.XX_WAIT_FOR, 10),
new MTOperation(MTOperation.TM_RESUME, 10),
new MTOperation(MTOperation.TM_GET_STATUS),
new MTOperation(MTOperation.TX_COMMIT, 10),
new MTOperation(MTOperation.TM_GET_STATUS),
}
});
}
}