Re: [pcre-dev] A question about testinput18

Top Page
Delete this message
Author: ph10
Date:  
To: Ze'ev Atlas
CC: pcre-dev@exim.org
Subject: Re: [pcre-dev] A question about testinput18
On Wed, 30 Dec 2015, Ze'ev Atlas wrote:

> It is 0 all the time.  Enclosed is the output file (translated to ASCII as usual) Ze'ev Atlas


So it isn't recognising that it has a compiled pattern to test. Did you
check that SUPPORT_PCRE2_8 is defined? Another test would be to move the
added line:

while (notdone)                                                             
  {                                                                         
  uint8_t *p;                                                               
  int rc = PR_OK;                                               
  BOOL expectdata = TEST(compiled_code, !=, NULL);                       
#ifdef SUPPORT_PCRE2_8                                         
  expectdata |= preg.re_pcre2_code != NULL;                               
fprintf(outfile, "+++expectdata=%d\n", expectdata); /* <====== Add this line */
#endif       

I've moved it inside the #ifdef. If there is no output, then it's not
seeing SUPPORT_PCRE2_8. If there *is* output, something else is going
wrong ... and I will have to think about it.

Philip

--
Philip Hazel