ia64/xen-unstable

view tools/xenstore/testsuite/12readonly.test @ 6552:a9873d384da4

Merge.
author adsharma@los-vmm.sc.intel.com
date Thu Aug 25 12:24:48 2005 -0700 (2005-08-25)
parents a9ee400a5da9
children 8799d14bef77 9312a3e8a6f8 dfaf788ab18c
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