Project:
lixa
Code Location:
https://lixa.svn.sourceforge.net/svnroot/lixa/tests//tests
/
tx_3_2.at
AT_BANNER([TX: 3.2 Opening and Closing Resource Managers]) AT_SETUP([TX/3.2/0.0]) # "An AP must call tx_open( ) to open all RMs linked with the AP. # If tx_open( ) returns with an error, all RMs are closed." AT_DATA([monkey1s.conf], [[# first monkey R.M. config xa_open/0 xa_close/0 ]]) AT_DATA([monkey2s.conf], [[# second monkey R.M. config xa_open/-3 xa_close/0 ]]) AT_DATA([monkey3s.conf], [[# third monkey R.M. config xa_open/0 xa_close/0 ]]) AT_CHECK([export LIXA_PROFILE=CASE_PROF_0000 ; lixa_test_exec.sh reset recycle case0000 2>&1 | tee $TESTS_TMP_FILE1 ; grep 'lixa_monkeyrm_close' $TESTS_TMP_FILE1 | grep 'ret_cod' | wc -l | grep 3], [0], [ignore], [ignore]) AT_CLEANUP AT_SETUP([TX/3.2/1.0]) # "The AP calls tx_close( ) to close all RMs linked with the AP. # For tx_close( ) to return success, the AP cannot be part of an active global # transaction when tx_close( ) is called. AT_DATA([monkey1s.conf], [[# first monkey R.M. config xa_open/0 xa_start/0 xa_end/0 xa_rollback/0 xa_close/0 ]]) AT_DATA([monkey1d.conf], [[# second monkey R.M. config xa_open/0 xa_end/0 xa_rollback/0 xa_close/0 ]]) AT_CHECK([export LIXA_PROFILE=CASE_PROF_0003 ; lixa_test_exec.sh reset recycle case0004 ], [0], [ignore], [ignore]) AT_CLEANUP
