Re: Testing debugging?

2007-05-06 Thread Issac Goldstand
Try looking at Apache::Test. It's written in Perl, but is supposed to work well with C modules just as well. See http://perl.apache.org/docs/general/testing/testing.html#Developing_Test_Response_Handlers_in_C Tim Bray wrote: I'd be so much happier if I had unit tests, but it's tricky since

Re: Testing debugging?

2007-05-06 Thread Mads Toftum
On Sat, May 05, 2007 at 10:03:24PM -0700, Tim Bray wrote: I'd be so much happier if I had unit tests, but it's tricky since everything's static. My best idea is to have an #ifdef TESTING section in my code that has a main() in it that runs the tests (of course this means actually

Testing debugging?

2007-05-05 Thread Tim Bray
I'd be so much happier if I had unit tests, but it's tricky since everything's static. My best idea is to have an #ifdef TESTING section in my code that has a main() in it that runs the tests (of course this means actually *understanding* the lovely makefile goodness I copied from Josh