ia64/xen-unstable

view tools/xenstore/testsuite/04rm.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 a5d67e3fbff1 872cf6ee0594
line source
1 # Remove non-existant fails.
2 expect rm failed: No such file or directory
3 rm /test
4 expect rm failed: No such file or directory
5 rm /dir/test
7 # Create file and remove it
8 write /test excl contents
9 rm /test
11 # Create directory and remove it.
12 mkdir /dir
13 rm /dir
15 # Create directory, create file, remove all.
16 mkdir /dir
17 write /dir/test excl contents
18 rm /dir