From 32c4ed3977cc25bbda59e4ee71a7ecbe285d6921 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Thu, 26 Mar 2020 06:56:18 +0000 Subject: 45591 (Cf. 45587, 45620): In the test suite, centralize testing that compiled modules can be loaded successfully. Have V01zmodload.ztst check that all modules enabled in config.modules load successfully. With this change, the test files for individual modules may assume that if 'zmodload' fails that must be because the module hadn't been compiled in, and mark themselves as skipped in that case. --- Test/V07pcre.ztst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Test/V07pcre.ztst') diff --git a/Test/V07pcre.ztst b/Test/V07pcre.ztst index ab67f3d80..15a0982c8 100644 --- a/Test/V07pcre.ztst +++ b/Test/V07pcre.ztst @@ -1,11 +1,10 @@ %prep - if grep '^name=zsh/pcre .* link=no ' $ZTST_testdir/../config.modules >/dev/null + if ! zmodload zsh/pcre 2>/dev/null; then then ZTST_unimplemented="the zsh/pcre module was disabled by configure (see config.modules)" return 0 fi - zmodload zsh/pcre setopt rematch_pcre # Find a UTF-8 locale. setopt multibyte -- cgit 1.4.1