ia64/xen-unstable

view tools/xenstore/testsuite/12readonly.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 # Test that read only connection can't alter store.
3 write /test create contents
5 readonly
6 expect test
7 expect tool
8 dir /
10 expect contents
11 read /test
12 expect 0 READ
13 getperm /test
14 watch /test token
15 unwatch /test token
16 start /
17 commit
18 start /
19 abort
21 # These don't work
22 expect write failed: Read-only file system
23 write /test2 create contents
24 expect write failed: Read-only file system
25 write /test create contents
26 expect setperm failed: Read-only file system
27 setperm /test 100 NONE
28 expect setperm failed: Read-only file system
29 setperm /test 100 NONE
30 expect shutdown failed: Read-only file system
31 shutdown
32 expect introduce failed: Read-only file system
33 introduce 1 100 7 /home
35 # Check that watches work like normal.
36 watch / token
37 1 readwrite
38 1 write /test create contents
39 expect /test:token
40 waitwatch
41 ackwatch token