aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2021-01-27 18:08:39 +0100
committerLeah Neukirchen <leah@vuxu.org>2021-01-27 18:08:39 +0100
commit2d6de31cd7adbcb753d53aa3e57bda9f08a83d7d (patch)
treecec0d019ebc7337836ec621de5081bd90a382ddb
parente96f0707de039d8a58fb6b3d4037a345ae6f31cc (diff)
downloadmblaze-2d6de31cd7adbcb753d53aa3e57bda9f08a83d7d.tar.gz
mblaze-2d6de31cd7adbcb753d53aa3e57bda9f08a83d7d.tar.xz
mblaze-2d6de31cd7adbcb753d53aa3e57bda9f08a83d7d.zip
t/3000-magrep.t: fix when stdin is not a tty
-rw-r--r--t/3000-magrep.t20
1 files changed, 10 insertions, 10 deletions
diff --git a/t/3000-magrep.t b/t/3000-magrep.t
index 4abf8c7..f20cbb6 100644
--- a/t/3000-magrep.t
+++ b/t/3000-magrep.t
@@ -172,23 +172,23 @@ inbox/cur/4:2,
export MAILSEQ=seq
-check_test 'subject' -eq 1 'magrep subject:nice | wc -l'
-check_test 'ignorecase' -eq 1 'magrep -i subject:NICE | wc -l'
-check_test 'invert' -eq 2 'magrep -v subject:nice | wc -l'
-check_test 'max matches' -eq 2 'magrep -m 2 from:Piet | wc -l'
-check_test 'long subject' -eq 1 'magrep subject:aliqua | wc -l'
-check_test 'decode large rfc2047 header' -eq 1 'magrep -d to:John | wc -l'
+check_test 'subject' -eq 1 'magrep subject:nice : | wc -l'
+check_test 'ignorecase' -eq 1 'magrep -i subject:NICE : | wc -l'
+check_test 'invert' -eq 2 'magrep -v subject:nice : | wc -l'
+check_test 'max matches' -eq 2 'magrep -m 2 from:Piet : | wc -l'
+check_test 'long subject' -eq 1 'magrep subject:aliqua : | wc -l'
+check_test 'decode large rfc2047 header' -eq 1 'magrep -d to:John : | wc -l'
echo 'inbox/cur/1:2,: subject: wow nice subject' >expect
-check_same 'print' 'magrep -p subject:nice' 'cat expect'
+check_same 'print' 'magrep -p subject:nice :' 'cat expect'
echo 'inbox/cur/1:2,: subject: nice' >expect
-check_same 'print match' 'magrep -po subject:nice' 'cat expect'
+check_same 'print match' 'magrep -po subject:nice :' 'cat expect'
echo 'nice' >expect
-check_same 'print match only' 'magrep -o subject:nice' 'cat expect'
+check_same 'print match only' 'magrep -o subject:nice :' 'cat expect'
echo 'inbox/cur/3:2,' >expect
-check_same 'multiple subjects' 'magrep subject:multi' 'cat expect'
+check_same 'multiple subjects' 'magrep subject:multi :' 'cat expect'
)