[Unit Test Framework]

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Unit Test Framework]

Evan Carew
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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?

Thanks,
Evan Carew
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFD7NkKpxCQXwV2bJARAmHfAJ40gh9/WXZe+sXCNgCZzPfea4nciQCgojG1
9L8mgvqBJxLAxE9V1UAy2tw=
=KfmW
-----END PGP SIGNATURE-----

_______________________________________________
Boost-users mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-users
Reply | Threaded
Open this post in threaded view
|

Re: [Unit Test Framework]

Gennadiy Rozental
> 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



_______________________________________________
Boost-users mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-users