source: trunk/packages/xen-3.1/xen-3.1/tools/xenstore/testsuite/13watch-ack.test @ 34

Last change on this file since 34 was 34, checked in by hartmans, 18 years ago

Add xen and xen-common

File size: 621 bytes
Line 
1# This demonstrates a bug where an xs_acknowledge_watch returns
2# EINVAL, because the daemon doesn't track what watch event it sent
3# and relies on it being the "first" watch which has an event.
4# Watches firing after the first event is sent out will change this.
5
6# Create three things to watch.
7mkdir /test
8mkdir /test/1
9mkdir /test/2
10mkdir /test/3
11
12# Watch all three, fire event on 2, read watch, fire event on 1 and 3, ack 2.
131 watch /test/1 token1
141 watch /test/2 token2
151 watch /test/3 token3
162 write /test/2 contents2
17expect 1:/test/2:token2
181 waitwatch
193 write /test/1 contents1
204 write /test/3 contents3
211 close
Note: See TracBrowser for help on using the repository browser.