Mocks and coverage with gtk/glib test frameworks?

2009-10-26 Thread Michael Libby
Forgive me if I'm on the wrong list with these questions, but gtk-devel seems to be the place where most gtk/glib test discussion has occurred. If there's a more appropriate place to bring this up, please let me know. I am using the gtk/glib test frameworks to do test driven development in C.

Re: gtk_test_find_widget bug?

2009-11-09 Thread Michael Libby
On Mon, Nov 9, 2009 at 3:57 PM, Michael Libby michael.c.li...@gmail.com wrote: This seems to be either a bug in my understanding of how to use this functionality or a bug in the gtk_test_find_widget function itself. After reading the source for the various gtk_test_find_* functions

g_debug as bug fixer?

2009-12-21 Thread Michael Libby
I am the strangest thing with some C code I'm writing that uses glib. I was having some issues with seg faults and/or corruption, so I decided to try and track where it was happening by throwing a couple of quick g_debug statements into my code. But this had the effect of causing the error to go

rm -rf with glib?

2010-02-07 Thread Michael Libby
I see there are convenience wrappers in glib for remove(), unlink() and rmdir(). But these only work on a single file or directory at a time. I don't see any way to delete an entire directory tree at once, as with `rm -rf`. I know how to write a recursive function using the functions above to