Please try the following patch

diff --git a/libproto/maildir/tests/isynccreat.at b/libproto/maildir/tests/isynccreat.at
index 67c45df1d..780593daf 100644
--- a/libproto/maildir/tests/isynccreat.at
+++ b/libproto/maildir/tests/isynccreat.at
@@ -40,7 +40,7 @@ mbop -m "maildir://$(pwd)/inbox;isync" append msg
 [append: OK
 ])

-AT_CHECK([newname=$(find inbox/new -type f -printf '%f\n')
+AT_CHECK([newname=$(find inbox/new -type f | sed -e 's|.*/||')
 echo $newname
 expr "$newname" : '[[0-9][0-9]*\.[0-9][0-9]*_[0-9][0-9]*\..*,U=1:2,]'],
 [0],
diff --git a/libproto/maildir/tests/isyncwrite.at b/libproto/maildir/tests/isyncwrite.at
index b32a78d29..46186ceb6 100644
--- a/libproto/maildir/tests/isyncwrite.at
+++ b/libproto/maildir/tests/isyncwrite.at
@@ -84,7 +84,7 @@ AT_CHECK([cat inbox/.uidvalidity],
 26
 ])

-AT_CHECK([newname=$(find inbox/cur -name '*,U=26*' -printf '%f\n')
+AT_CHECK([newname=$(find inbox/cur -name '*,U=26*' | sed -e 's|.*/||')
 echo $newname
 expr "$newname" : '[[0-9][0-9]*\.[0-9][0-9]*_[0-9][0-9]*\..*,U=26:2,]'],
 [0],

Reply via email to