File: 17-fail-rename

package info (click to toggle)
syncmaildir 1.2.5-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,104 kB
  • sloc: ansic: 6,643; sh: 1,780; makefile: 247
file content (21 lines) | stat: -rw-r--r-- 352 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash


msync 1

echo -en 'Subject: foo\n\nBODY\n' > Mail/cur/new_mail
cp -r target/Mail/ target/Mail.old
chmod a-w target/Mail/cur

msync 2

chmod u+w target/Mail/cur

test_eq target/Mail.old target/Mail 

X=`grep '^ADD ' log.s2c | wc -l`
assert $X 1 "missing ADD in s2c"

X=`grep '^ABORT$' log.c2s | wc -l`
assert $X 1 "missing COMMIT in c2s"