]> git.notmuchmail.org Git - notmuch/commitdiff
test: Increment mtime when delivering a message with emacs_deliver_message
authorCarl Worth <cworth@cworth.org>
Wed, 29 Jun 2011 00:06:15 +0000 (17:06 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 29 Jun 2011 00:10:55 +0000 (17:10 -0700)
Without this, mail messages delivered by emacs_deliver_message might
not be seen by the next invocation of "notmuch new", (which can lead
to test-suite failures if emacs_deliver_message is fast enough).

test/test-lib.sh

index 49522da8706e6f6c7ee6dbc8dc48e41f9eb0faef..7d39d27b1d210a11196ad5aec99644d388dc2798 100755 (executable)
@@ -409,6 +409,8 @@ emacs_deliver_message ()
           $@
           (message-send-and-exit))" >/dev/null 2>&1
     wait ${smtp_dummy_pid}
           $@
           (message-send-and-exit))" >/dev/null 2>&1
     wait ${smtp_dummy_pid}
+    increment_mtime "$MAIL_DIR"/sent/cur
+    increment_mtime "$MAIL_DIR"/sent/new
     notmuch new >/dev/null
 }
 
     notmuch new >/dev/null
 }