PMbwmon bandwidth monitor: can specify which interfaces to watch, also supporting...
[hband-tools.git] / tests / takeown / 06-activewrite.test
blob3cb1094ce5e2d70df07d2e5090d0ad1009014ffe
1 setting
2 0755 root targetdir/
3 0644 root targetdir/file
4 0755 SELF readonlydir/
5 end
7 action
8 # make a directory which is seemingly writable, but it is not
9 sh
11 bindfs -g $USER -p g+rw targetdir readonlydir
12 end
14 cleanup-pre-script
15 fusermount -u readonlydir
16 end
18 environ
19 LANGUAGE=C
20 LANG=C
21 end
23 action
24 ../../user-tools/takeown
25 --active-write-test
26 --recursive
27 readonlydir
28 end
30 expections
31 status fail
32 stderr match ^touch: cannot touch `readonlydir/takeown-writetest\.
33 type f targetdir/file
34 type f readonlydir/file
35 end