i put unit tests in C running over hudson, but when i have a test that failures it shows a success in the build, but must to appear fail!
I'm using gcc to compile and run the executable in hudson like that:
gcc -lcunit test_ctesting.c -o testing
./testing
it's in a shell command, how can i get the failures and show it?
The exit code is stored in the variable
$?
, and I'm assuming that if tests fail it's set to something non-zero.... if it's something unixy, anyway.