GNOME Bugzilla – Bug 600618
gtester should fail even if -k is passed
Last modified: 2009-11-23 23:18:35 UTC
If you use gtester with the -k option it continues to run tests even if one fails. Which is great. But what is not great is that it returns 0 in this case even if some of the tests fail. It should still report failure even if -k is used. https://bugs.launchpad.net/ubuntu/+source/glib2.0/+bug/473456
Created attachment 146881 [details] [review] Patch to return the number of tests failed, which on failure would be > 0
Seems simple enough and useful. Matthias or Tim, is it okay to commit this one?
I think this ought to be return testcase_fail_count == 0 ? 0 : 1; since the return value of main is effectively only 8 bit and certain values have special meaning.
Comment on attachment 146881 [details] [review] Patch to return the number of tests failed, which on failure would be > 0 commit 04d83e8e503a07e7b4279227c8f992ddf7c6ef4e