diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2020-03-26 07:00:18 +0000 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2020-03-27 01:14:42 +0000 |
commit | c4f18c29c794cf54fbab933082ac273cba795396 (patch) | |
tree | d7f6925ad1d7956ddc7991d4982236305b9111b8 | |
parent | 32c4ed3977cc25bbda59e4ee71a7ecbe285d6921 (diff) | |
download | zsh-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.
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | Test/B12limit.ztst | 10 |
2 files changed, 12 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index bdaa3ae9b..b82f1a070 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2020-03-26 Daniel Shahaf <d.s@daniel.shahaf.name> + * 45584, 45620: Test/B12limit.ztst: zsh/rlimits: Skip the tests + for this module when it wasn't compiled in. + * 45591 (Cf. 45587, 45620): Test/V01zmodload.ztst, Test/V07pcre.ztst: In the test suite, centralize testing that compiled modules can be loaded successfully. 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 |