]> Sergey Matveev's repositories - zsh-autoenv.git/blobdiff - tests/_autoenv_utils.t
Merge pull request #22 from Tarrasch/improve-and-test-zstat-integration
[zsh-autoenv.git] / tests / _autoenv_utils.t
index 3da1fde11ff22fa30ce4f3a9d74da42c674dc855..303cd24a8f2cd0da0bac7b2e0c43a2a23cf8e366 100644 (file)
@@ -1,6 +1,6 @@
 Tests for internal util methods.
 
-  $ source $TESTDIR/setup.sh
+  $ source $TESTDIR/setup.sh || return 1
 
 Non-existing entries are allowed and handled without error.
 
@@ -71,3 +71,17 @@ Re-add the first one, with a new hash.
   :/tmp/cramtests-*/_autoenv_utils.t/second:7bee8f3b184e1e141ff76efe369c3b8bfc50e64c:1 (glob)
   :/tmp/cramtests-*/_autoenv_utils.t/first:65eb010197b73ddc109b7210080f97a87f53451e:1 (glob)
 }}}
+
+
+Explicit calls to _autoenv_get_file_mtime to test alternative implementation
+of _autoenv_get_file_mtime (via ZDOTDIR.invalid-module_path/).
+
+  $ _autoenv_get_file_mtime non-existing
+  0
+  $ touch -t 201401010101 file
+  $ _autoenv_get_file_mtime file
+  1388538060
+  $ mkdir dir
+  $ touch -t 201401010102 dir
+  $ _autoenv_get_file_mtime dir
+  1388538120