4 Jan 2003 23:59
Problem
Hi, I am using cppunit on a gentoo linux 1.4 rc1 box. I got a SIGABORT signal. gcc version is 3.2.1 hilippe <at> werewindle ~/work/kompare/kdesdk/kompare-phil/libdiff2/unittests $ gdb unittests GNU gdb 5.2.1 Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu"... (gdb) run Starting program: /home/philippe/work/kompare/kdesdk/kompare-phil/libdiff2/unittests/unittests .. Program received signal SIGABRT, Aborted. 0x40176c91 in kill () from /lib/libc.so.6 (gdb) backtrace #0 0x40176c91 in kill () from /lib/libc.so.6 #1 0x40176a78 in raise () from /lib/libc.so.6 #2 0x4017811c in abort () from /lib/libc.so.6 #3 0x400f1dd3 in __cxxabiv1::__terminate(void (*)()) () from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/libstdc++.so.5 #4 0x400f1e14 in __cxxabiv1::__unexpected(void (*)()) () from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/libstdc++.so.5(Continue reading)
. They
>> instiate a new Fixture() for each test case. You will have to work around
>> it somehow.
>
>This is a normal behavior. It provides maximum isolation between each test
>case of the fixture. As far as I know JUnit behave the same way.
There is a chance I missed something, but from my brief review of the
JUnit code and especially the JUnit articles and examples I have read, it
appeared to me that the point of the Fixture was indeed to manage the a
set of tests and not a single test. If it was meant to manage a single
test that what is the point of setUp() and tearDown()? I could just as
easily do these in a constructor or a destructor.
>> CppUnit likes calling new()
RSS Feed