]> thyrsus.com Git - src.git/commitdiff
Timestamp forced to change when testing file mod
authorShimon Bollinger <deoac.shimon@gmail.com>
Mon, 10 Nov 2014 03:06:06 +0000 (22:06 -0500)
committerEric S. Raymond <esr@thyrsus.com>
Mon, 10 Nov 2014 04:11:47 +0000 (23:11 -0500)
srctest

diff --git a/srctest b/srctest
index 04e838d126ee498620c08c09d8c62bbd2aceac02..e1d89808a89ed2de0fdccda4bfba0bb95443b19c 100755 (executable)
--- a/srctest
+++ b/srctest
@@ -213,6 +213,7 @@ src $TESTOPTS commit -m "Another sample" testfile16
 src $TESTOPTS status testfile16 | grep "^U" >/dev/null
 check "U status check after first commit"
 
+sleep 2     # ensures the timestamp changes
 echo "Add a second line" >>testfile16
 src $TESTOPTS status testfile16 | grep "^M" >/dev/null
 check "M status check after modification"