Re: Unit testing

2008-12-12 Thread Jim Jagielski
Look at the httpd-test/framework package: http://svn.apache.org/viewvc/httpd/test/framework/trunk/ On Dec 12, 2008, at 8:54 AM, Kevac Marko wrote: Hello. What is the best way to write unit tests for C apache modules? Maybe some frameworks? -- С уважением, Кевац Марко Sincerely yours,

understanding apr_strtok()

2008-12-12 Thread Sam Carleton
I am trying to use apr_strtok() for the first time. I am taking the add_cookie() function from mod_rewrite.c, no changes. I am passing in the string, variable 's': KioskViewingStation:KVS_VERSION::5 The first line that executes in the function is: char *tok_cntx; var = apr_strtok(s, ":

Re: understanding apr_strtok()

2008-12-12 Thread Mark Harrison
Sam Carleton wrote: I am trying to use apr_strtok() for the first time. I am taking the add_cookie() function from mod_rewrite.c, no changes. I am passing in the string, variable 's': KioskViewingStation:KVS_VERSION::5 The first line that executes in the function is: char *tok_cntx;

Re: understanding apr_strtok()

2008-12-12 Thread Saju Pillai
On 13-Dec-08, at 1:02 PM, Mark Harrison wrote: Sam Carleton wrote: I am trying to use apr_strtok() for the first time. I am taking the add_cookie() function from mod_rewrite.c, no changes. I am passing in the string, variable 's': KioskViewingStation:KVS_VERSION::5 The first line that exe

Re: understanding apr_strtok()

2008-12-12 Thread William A. Rowe, Jr.
Sam Carleton wrote: > I am trying to use apr_strtok() for the first time. I am taking the > add_cookie() function from mod_rewrite.c, no changes. I am passing in > the string, variable 's': > > KioskViewingStation:KVS_VERSION::5 > > The first line that executes in the function is: > > char

Re: understanding apr_strtok()

2008-12-12 Thread Saju Pillai
2008/12/13 Saju Pillai : > > On 13-Dec-08, at 1:02 PM, Mark Harrison wrote: > >> Sam Carleton wrote: >>> >>> I am trying to use apr_strtok() for the first time. I am taking the >>> add_cookie() function from mod_rewrite.c, no changes. I am passing in >>> the string, variable 's': >>> KioskViewing