From 5d65371786a1e97f73ba37bc2f6db29b31db9fab Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sun, 25 Jan 2015 19:19:11 +0100 Subject: [PATCH] Test env for invalid zsh module_path, where zsh/zstat fails --- tests/ZDOTDIR.invalid-module_path/.zshenv | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/ZDOTDIR.invalid-module_path/.zshenv diff --git a/tests/ZDOTDIR.invalid-module_path/.zshenv b/tests/ZDOTDIR.invalid-module_path/.zshenv new file mode 100644 index 0000000..baa1de6 --- /dev/null +++ b/tests/ZDOTDIR.invalid-module_path/.zshenv @@ -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