Op Wed, 6 Sep 2006, schreef Dossy Shiobara:
> On 2006.09.06, Tom Jackson <[EMAIL PROTECTED]> wrote: > > Anyway, the code that is causing the segfault is very likely to be the > > type of thing that you could never write a test for. And writing a > > test right now, just to make sure it doesn't happen again seems > > equally impossible. > > Of course you can write a test for it. Create an ADP page that issues a > ns_returnredirect, starts a server with a stripped down test config, and > then hit the server (wget, curl, Tcl http package, etc.) and verify that > it returned the correct response *and* didn't exit with a signal. "Testing can be used to prove the existance of bugs, but is totally useless for proving their absence" -- Edsger W. Dijkstra. In other words, to write bug free code, you cannot rely on testing. You have to understand what happens. Now, Dijkstra propably didn't use debuggers, because he didn't like iterative design and instead designed his algorithms on paper, only using a computer after he had proven them to be correct. Daniël -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.