ia64/xen-unstable

view tools/xenstore/testsuite/13watch-ack.test @ 6946:e703abaf6e3d

Add behaviour to the remove methods to remove the transaction's path itself. This allows us to write Remove(path) to remove the specified path rather than having to slice the path ourselves.
author emellor@ewan
date Sun Sep 18 14:42:13 2005 +0100 (2005-09-18)
parents 3233e7ecfa9f
children f7a7f8f2e6e4 872cf6ee0594
line source
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.
6 # Create three things to watch.
7 mkdir /test
8 mkdir /test/1
9 mkdir /test/2
10 mkdir /test/3
12 # Watch all three, fire event on 2, read watch, fire event on 1 and 3, ack 2.
13 1 watch /test/1 token1
14 1 watch /test/2 token2
15 1 watch /test/3 token3
16 2 write /test/2 create contents2
17 expect 1:/test/2:token2
18 1 waitwatch
19 3 write /test/1 create contents1
20 4 write /test/3 create contents3
21 1 ackwatch token2
22 1 close