
I'm trying out Unit Test for the first time & decided to try out the first example listed in the getting started docs. It compiled fine on my g++ v4.0 boost v1_32 setup, but I get the following output which looks wrong to me:
[root@r3-mobile src]# ./test_watchdog Running 1 test case... /root/projects/IBS/test_watchdog/src/test_watchdog.cpp(38): error in "free_test_function": test 2 == 1 failed Exception in "free_test_function": signal: memory access violation /usr/src/build/570409-i386/BUILD/boost_1_32_0/libs/test/build/../src/unit_test_suite.cpp(150): fatal error in "free_test_function": Testing aborted
*** 1 failure detected (1 failure expected) in test suite "Unit test example 1"
Is there an easily explained (and implemented) way to get the output for this test app to work?
What exactly is wrong with above output? Using latest CVS version with similar example produce slightly different output: unit_test_example_02.cpp(20): error in "free_test_function": check 2 == 1 failed unknown location(0): fatal error in "free_test_function": memory access violation unit_test_example_02.cpp(25): last checkpoint *** 2 failures detected (2 failures expected) in test suite "Unit test example 02" Gennadiy