TMP: add a ctdb snapshot of current ctdb master (git://git.samba.org/ctdb.git) to...
[obnox/samba/samba-obnox.git] / ctdb / libctdb / test / tests / lockrecord2.txt
1 connect
2 # This is just a sanity check
3 expect attachdb attached: 1
4 attachdb test.tdb false
5 # This is just a sanity check
6 expect readrecordlock lock 1: data ''
7 readrecordlock 1 testkey
8 writerecord 1 1 test-contents
9 releaselock 1 1
10
11 expect readrecordlock lock 2: data 'test-contents'
12 readrecordlock 1 testkey
13 releaselock 1 2