Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: pcre test failures
On Oct 26, 7:49pm, Jun T. wrote:
}
} To avoid this the "%prep" section of the V07pcre.ztst must be modified
} as follows:
}
} if zmodload zsh/pcre 2>/dev/null; then
} ....(current %prep section goes into here)
} else
} ZTST_unimplemented="the zsh/pcre module is not available"
} fi
Or just this:
--- ../zsh-forge/current/Test/V07pcre.ztst 2011-10-24 04:31:25.000000000
-0700
+++ ./Test/V07pcre.ztst 2011-10-26 11:27:47.000000000 -0700
@@ -1,6 +1,10 @@
%prep
- zmodload zsh/pcre
+ if ! zmodload zsh/pcre 2>/dev/null
+ then
+ ZTST_unimplemented="the zsh/pcre module is not available"
+ return 0
+ fi
setopt rematch_pcre
# Find a UTF-8 locale.
setopt multibyte
Messages sorted by:
Reverse Date,
Date,
Thread,
Author