aboutsummaryrefslogtreecommitdiff
path: root/test/test-lib.sh
diff options
context:
space:
mode:
authorAustin Clements <amdragon@MIT.EDU>2011-06-29 03:10:55 -0400
committerCarl Worth <cworth@cworth.org>2011-06-29 15:26:45 -0700
commit47afbdfb7995d703987a273bccc3a60fedc6dd08 (patch)
tree04e0ce19648654b219fd6d45a1a65599d6b64bff /test/test-lib.sh
parent8c39e8d6fbc1202605494d481b27be6bcccaf500 (diff)
test: Nix increment_mtime.
With the fix for the mtime race, this workaround is no longer necessary.
Diffstat (limited to 'test/test-lib.sh')
-rwxr-xr-xtest/test-lib.sh15
1 files changed, 0 insertions, 15 deletions
diff --git a/test/test-lib.sh b/test/test-lib.sh
index 079d7db..22e387e 100755
--- a/test/test-lib.sh
+++ b/test/test-lib.sh
@@ -213,16 +213,6 @@ remove_cr () {
tr '\015' Q | sed -e 's/Q$//'
}
-# Notmuch helper functions
-increment_mtime_amount=0
-increment_mtime ()
-{
- dir="$1"
-
- increment_mtime_amount=$((increment_mtime_amount + 1))
- touch -d "+${increment_mtime_amount} seconds" "$dir"
-}
-
# Generate a new message in the mail directory, with a unique message
# ID and subject. The message is not added to the index.
#
@@ -364,9 +354,6 @@ Date: ${template[date]}
${additional_headers}
${template[body]}
EOF
-
- # Ensure that the mtime of the containing directory is updated
- increment_mtime "$(dirname "${gen_msg_filename}")"
}
# Generate a new message and add it to the database.
@@ -409,8 +396,6 @@ emacs_deliver_message ()
$@
(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
}