httpd-test-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Hill <ddh...@laurel.zk3.dec.com>
Subject minor change needed in mod_test_apr_uri.c
Date Mon, 16 Sep 2002 15:00:34 GMT

Hi,
	Just starting to use the test framework on Tru64. Bumped into
a compiler issue... Our compiler does not like multiline implicite strings.
You can do muliline strings, you just need to end them with '\n\'. Attached
is a diff -c of my change. I belive that the the change should work with
other compilers.

Dave Hill


*** httpd-test/perl-framework/c-modules/test_apr_uri/mod_test_apr_uri.c.orig	Thu Sep 12 21:02:30
2002
--- httpd-test/perl-framework/c-modules/test_apr_uri/mod_test_apr_uri.c	Fri Sep 13 07:34:12
2002
***************
*** 286,310 ****
      r->content_type = "text/html";              
  
      ap_rputs(
! DOCTYPE_HTML_2_0 "
! <html><body>
! <p>Key:
! <dl>
! <dt>row
! <dd>entry number in the uri_tests array
! <dt>u
! <dd>fields under test
! <dt>expected
! <dd>fields expected in the result
! <dt>status
! <dd>response from parse_uri_components, or 500 if unexpected results
! <dt>input uri
! <dd>the uri given to parse_uri_components
! </dl>
! <p>The remaining fields are the pieces returned from parse_uri_components, and
! the values we expected for each piece (resp.).
! <p>Only failures are displayed.
! <p>
  <table><tr><th>row</th><th>u</th><th>expect</th><th>status</th><th>input
uri</th>", r);
  #define HEADER(f) ap_rprintf(r, "<th>" #f "<br>0x%02x</th>", T_##f)
      HEADER(scheme);
--- 286,310 ----
      r->content_type = "text/html";              
  
      ap_rputs(
! DOCTYPE_HTML_2_0 "\n\
! <html><body>\n\
! <p>Key:\n\
! <dl>\n\
! <dt>row\n\
! <dd>entry number in the uri_tests array\n\
! <dt>u\n\
! <dd>fields under test\n\
! <dt>expected\n\
! <dd>fields expected in the result\n\
! <dt>status\n\
! <dd>response from parse_uri_components, or 500 if unexpected results\n\
! <dt>input uri\n\
! <dd>the uri given to parse_uri_components\n\
! </dl>\n\
! <p>The remaining fields are the pieces returned from parse_uri_components, and\n\
! the values we expected for each piece (resp.).\n\
! <p>Only failures are displayed.\n\
! <p>\n\
  <table><tr><th>row</th><th>u</th><th>expect</th><th>status</th><th>input
uri</th>", r);
  #define HEADER(f) ap_rprintf(r, "<th>" #f "<br>0x%02x</th>", T_##f)
      HEADER(scheme);

Mime
View raw message