about summary refs log tree commit diff
path: root/Test/B12limit.ztst
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2020-03-26 07:00:18 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2020-03-27 01:14:42 +0000
commitc4f18c29c794cf54fbab933082ac273cba795396 (patch)
treed7f6925ad1d7956ddc7991d4982236305b9111b8 /Test/B12limit.ztst
parent32c4ed3977cc25bbda59e4ee71a7ecbe285d6921 (diff)
downloadzsh-c4f18c29c794cf54fbab933082ac273cba795396.tar.gz
zsh-c4f18c29c794cf54fbab933082ac273cba795396.tar.xz
zsh-c4f18c29c794cf54fbab933082ac273cba795396.zip
45584, 45620: zsh/rlimits: Skip the tests for this module when it wasn't compiled in.
Diffstat (limited to 'Test/B12limit.ztst')
-rw-r--r--Test/B12limit.ztst10
1 files changed, 9 insertions, 1 deletions
diff --git a/Test/B12limit.ztst b/Test/B12limit.ztst
index 922751369..48d33e6e3 100644
--- a/Test/B12limit.ztst
+++ b/Test/B12limit.ztst
@@ -1,4 +1,12 @@
-# check if there is unknown resouce(s)
+
+%prep
+
+  if ! zmodload zsh/rlimits 2>/dev/null
+  then
+    ZTST_unimplemented="the zsh/rlimits module was disabled by configure (see config.modules)"
+    return 0
+  fi
+  zmodload zsh/rlimits
 
 %test