zsh-workers
 help / color / mirror / code / Atom feed
* [PATCH] Have V07pcre fail if PCRE was enabled by configure (config.modules) but failed to load for any reason.
@ 2018-09-18 23:15 Daniel Shahaf
  0 siblings, 0 replies; only message in thread
From: Daniel Shahaf @ 2018-09-18 23:15 UTC (permalink / raw)
  To: zsh-workers; +Cc: 909114, Daniel Shahaf

From: Daniel Shahaf <danielsh@apache.org>

---
 Test/V07pcre.ztst | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/Test/V07pcre.ztst b/Test/V07pcre.ztst
index 9feeb47fb..ab67f3d80 100644
--- a/Test/V07pcre.ztst
+++ b/Test/V07pcre.ztst
@@ -1,11 +1,10 @@
 %prep
 
-  if ! zmodload -F zsh/pcre C:pcre-match 2>/dev/null
+  if grep '^name=zsh/pcre .* link=no ' $ZTST_testdir/../config.modules >/dev/null
   then
-    ZTST_unimplemented="the zsh/pcre module is not available"
+    ZTST_unimplemented="the zsh/pcre module was disabled by configure (see config.modules)"
     return 0
   fi
-# Load the rest of the builtins
   zmodload zsh/pcre
   setopt rematch_pcre
 # Find a UTF-8 locale.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-09-18 23:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-18 23:15 [PATCH] Have V07pcre fail if PCRE was enabled by configure (config.modules) but failed to load for any reason Daniel Shahaf

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).