]> Sergey Matveev's repositories - zsh-autoenv.git/commitdiff
Test env for invalid zsh module_path, where zsh/zstat fails
authorDaniel Hahler <git@thequod.de>
Sun, 25 Jan 2015 18:19:11 +0000 (19:19 +0100)
committerDaniel Hahler <git@thequod.de>
Sun, 25 Jan 2015 18:22:52 +0000 (19:22 +0100)
tests/ZDOTDIR.invalid-module_path/.zshenv [new file with mode: 0644]

diff --git a/tests/ZDOTDIR.invalid-module_path/.zshenv b/tests/ZDOTDIR.invalid-module_path/.zshenv
new file mode 100644 (file)
index 0000000..baa1de6
--- /dev/null
@@ -0,0 +1,13 @@
+# Use invalid module path for zsh, to test alternative zstat implementation.
+
+# Pre-load zsh/parameter, where we do not have/need(?) an alternative
+# implementation.
+zmodload zsh/parameter
+
+module_path=(/dev/null)
+
+zstat() {
+  echo "Should not get called."
+}
+
+source ${ZDOTDIR}/../ZDOTDIR/.zshenv