cppunit-devel Mailing List for CppUnit - C++ port of JUnit (Page 7)
Brought to you by:
blep
You can subscribe to this list here.
| 2001 |
Jan
|
Feb
|
Mar
|
Apr
(21) |
May
(96) |
Jun
(109) |
Jul
(42) |
Aug
(6) |
Sep
(106) |
Oct
(60) |
Nov
(20) |
Dec
(6) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2002 |
Jan
(7) |
Feb
(11) |
Mar
(49) |
Apr
(124) |
May
(30) |
Jun
(37) |
Jul
(53) |
Aug
(33) |
Sep
(21) |
Oct
(22) |
Nov
(19) |
Dec
(15) |
| 2003 |
Jan
(34) |
Feb
(25) |
Mar
(11) |
Apr
(12) |
May
(16) |
Jun
(24) |
Jul
(23) |
Aug
(23) |
Sep
(42) |
Oct
(7) |
Nov
(32) |
Dec
(33) |
| 2004 |
Jan
(41) |
Feb
(41) |
Mar
(24) |
Apr
(25) |
May
(18) |
Jun
(13) |
Jul
(11) |
Aug
(15) |
Sep
(22) |
Oct
(10) |
Nov
(15) |
Dec
(9) |
| 2005 |
Jan
(4) |
Feb
(15) |
Mar
(11) |
Apr
(16) |
May
(29) |
Jun
(17) |
Jul
(27) |
Aug
(12) |
Sep
(9) |
Oct
(10) |
Nov
(5) |
Dec
(6) |
| 2006 |
Jan
(2) |
Feb
(6) |
Mar
(7) |
Apr
(2) |
May
(1) |
Jun
(5) |
Jul
(8) |
Aug
(6) |
Sep
(10) |
Oct
(11) |
Nov
(15) |
Dec
(2) |
| 2007 |
Jan
(12) |
Feb
(22) |
Mar
(10) |
Apr
(7) |
May
(1) |
Jun
(8) |
Jul
(4) |
Aug
(1) |
Sep
(2) |
Oct
(1) |
Nov
|
Dec
|
| 2008 |
Jan
|
Feb
(7) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2009 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(7) |
Dec
|
| 2010 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Baptiste L. <bl...@us...> - 2006-03-03 08:39:55
|
Bradbury, Doug wrote: > I'm running CPPUNIT on an embedded environment without any built in > memory leak detection. I've built a little tool (ala James > Grenning's blog > http://butunclebob.com/ArticleS.JamesGrenning.CppTestToolsMemoryLeakDetector) > to just keep a simple count of new and delete in static variables. > I've successfully added this to a couple of test fixtures. > > I'd like to integrate it in a place where it would be called before > and after each test is run and before and after all tests are run. > I've been into the CPPUnit code a little bit, but only to write my > own outputter. Does anyone have a suggestion as to where I could > integrate these calls? The best place I see for that is writing a TestListener. Have a look at examples/ClockerPlugIn as it seems similar in concept (used to time each test). Baptiste. --- Baptiste Lepilleur <bl...@us...> CppUnit maintainer OpenTest and CppUnit 2 developer. |
|
From: Baptiste L. <bl...@us...> - 2006-03-03 08:32:32
|
Henry Roeland wrote: > Dear all, > > What is the current status of CppUnit2? Is the roadmap at > http://cppunit.sourceforge.net/cppunit-wiki/CppUnit2/RoadMap still up > to date? > Yes, It's mostly up to date. Though, I'll try to revisit it as some tasks to be done are not shown there. > The reason I'm asking is because I'm very interested in the Opentest > part. The division between running and monitoring seams very > appealing. Great. I'm kind of frozen when trying to move forward with opentest because I probably want to do too much at once. A new look on this would be very welcome. > I'm a software developer with experience in C++/XML/JUnit testing and > more. Can I help on some parts of this project? Yes, your help is definitely welcome. You can try your hand at getting the basic monitoring working. The goal is to get the examples/open_demo to run as a monitored run when --monitor is specified on the command-line. Stuff to keep in mind: - OpenTest should not depends on CppUnit2, but it can use CppTL (the tool/portability library). - It should be possible to use OpenTest with other test framework (such as CppUnit1) by writing the required adaptor. - Multiple tests can be executed simultaneously by the test runner (it's ok if the initial implementation does not support this, but it should be supported latter on as multi-threaded test execution is quiet useful). Here is how I basic communication works between open test driver and cppunit 2 test runner to go: - opentest retrieves the list of tests from cppunit2 test runner - opentest asks cppunit2 test runner to run a specific test plan (supposedly a subset of the previous list selected by the user) - cppunit2 test runner returns test result as tests are executed. All thoses communications may be asynchronous and are therefore not suited for monitoring what tests were running when the crash occured. Another mecanism need to be plugged (we can start with a simple file based mecanism). Fell free to comment on anything you don't like in the code (I never got much feedback on this) and ask anything questions you have. Thanks for proposing to help, I definetly need some to get that project out ! Baptiste. --- Baptiste Lepilleur <bl...@us...> CppUnit maintainer OpenTest and CppUnit 2 developer. |
|
From: Lechtman, E. <eli...@in...> - 2006-03-02 08:50:10
|
Hello, =20 I am using your cppUnit product for running TestSuites by using class MfcTestRunner. I would like to know if there is an option to select more than one test at the time (to run sequentially) in the Browse dialog box. I would also like to know if it is possible to select the tests from different suits (different directories in Browse dialog box). =20 Thanks, Elinor. =20 =20 Elinor Lechtman Intel Corp, Wireless Networking Group, Israel. Desk: 972-4-8651199 =20 |
|
From: Henry R. <he...@ro...> - 2006-02-27 21:26:40
|
Dear all, What is the current status of CppUnit2? Is the roadmap at http://cppunit.sourceforge.net/cppunit-wiki/CppUnit2/RoadMap still up to date? The reason I'm asking is because I'm very interested in the Opentest part. The division between running and monitoring seams very appealing. I'm a software developer with experience in C++/XML/JUnit testing and more. Can I help on some parts of this project? Hope to hear from you. Sincerely, Henry Roeland |
|
From: Bradbury, D. <Bra...@sh...> - 2006-02-27 17:44:41
|
I'm running CPPUNIT on an embedded environment without any built in memory leak detection. I've built a little tool (ala James Grenning's blog http://butunclebob.com/ArticleS.JamesGrenning.CppTestToolsMemoryLeakDetector) to just keep a simple count of new and delete in static variables. I've successfully added this to a couple of test fixtures. I'd like to integrate it in a place where it would be called before and after each test is run and before and after all tests are run. I've been into the CPPUnit code a little bit, but only to write my own outputter. Does anyone have a suggestion as to where I could integrate these calls? =20 Thanks, Doug Bradbury ------------------------------------------------------------ This e-mail message (including any attachments) contains confidential, non-public information. It also may be protected by the attorney/client or other applicable privileges.=20 It is intended to be communicated only to the designated recipient(s). Unauthorized use, reproduction, dissemination, or communication of this message or any information contained in this message is strictly prohibited and may be unlawful.=20 If you are not an intended recipient of this message, please notify the sender promptly by e-mail or telephone at the sender=92s location indicated above or contact Shure Incorporated at ser...@sh... or (847) 600-2000. ------------------------------------------------------------ |
|
From: <vri...@us...> - 2006-02-26 14:24:15
|
> I am having a problem if I call CPPUNIT_ASSERT, I get a heap error with > a bad pointer being passed to free. If I call CPPUNIT_ASSERT_EQUAL I do > not have a problem. In most cases, there is a memory problem in your code before calling CppUnit, and the CppUnit macros are not in cause. You may have some memory corruption, which is always present but only visible when you call CPPUNIT_ASSERT. It may be a buffer overflow, or the program may call free() several times on the same block. You may find the source of your problem by using Purify, BoundsChecker or similar tools. Good luck. Vincent. |
|
From: <lu...@ss...> - 2006-02-24 07:59:10
|
Dear all
I am a new user of the cppunit, thanks for all of your works.
I have some comment in the TestCase class, if there are some
things I have not thinked, plz help me to know it.
Why don't we use private pure virtual member function instead
of the public pure virtual member runTest();
use
public:
void runTest() {
doRunTest();
}
private:
virtual void doRuntTest()=0;
instead of
public:
virtual void runTest()=0;
this can avoid the subclass of subclass from forgeting to overwrite
the function and get the same meaning of the public virtual member function
I think it may be a better implementation in such overwriting problem
But I don't know is there any problems I ignore?
Best Regards,
Luba
|
|
From: Joe R. <jr...@ad...> - 2006-02-23 18:20:56
|
I am having a problem if I call CPPUNIT_ASSERT, I get a heap error with a bad pointer being passed to free. If I call CPPUNIT_ASSERT_EQUAL I do not have a problem. Any ideas? -Joe Raper Applied Data Trends, Inc. 215 Wynn Drive, Suite 321 Huntsville, AL 35805 (256) 319-0714 |
|
From: Brad B. <bra...@se...> - 2006-01-03 02:41:37
|
I am running cygwin to make it easy to test my open source
project both under the GNU and Microsoft compilers.
I would like a version of cppunit.m4 that does not generate the
following warnings:
$ aclocal
/usr/share/aclocal/cppunit.m4:4:
warning: underquoted definition of AM_PATH_CPPUNIT
run info '(automake)Extending aclocal'
or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
There is some mention of this problem at:
http://lists.freedesktop.org/pipermail/xserver/2004-April/001198.html
On my system, the file
/usr/include/cppunit/Portability.h
contains the text
#define CPPUNIT_VERSION "1.9.10"
I think that this specifies the version of cppunit that is installed on
my system.
|
|
From: <vri...@us...> - 2006-01-01 12:58:56
|
> Anyone tried to run subset of testcases within a test-suite in =
non-interactive mode? Any suggestions?
Some methods take a "test path" argument, you can put "RPTest" or =
"RPTest::testConnection" to specify which tests you want to run.
1) The "cppunittest" example shows you how to use a test path specified =
on the command line.
Look at cppunit/examples/cppunittest/CppUnitTestMain.cpp
2) The simpliest way to run a single test is to use a TextTestRunner, =
and to pass the test path to the method run() :
CPPUNIT_NS::Test* suite =3D =
CPPUNIT_NS::TestFactoryRegistry::getRegistry().makeTest();
CPPUNIT_NS::TextTestRunner runner;
runner.addTest(suite);
runner.run("RPTest::testConnection");
But this is not very user-friendly, because it only prints dots as the =
tests are run. Anyway if you want to run only one test, this is not a =
problem.
3) A better way to run multiple tests is to use a =
BriefTestProgressListener : while the tests are running, it prints the =
name of the test and the result.
Here is an example, derived from cppunit/examples/simple/Main.cpp
CPPUNIT_NS::Test* suite =3D =
CPPUNIT_NS::TestFactoryRegistry::getRegistry().makeTest();
CPPUNIT_NS::TestResult result;
CPPUNIT_NS::TestResultCollector collector;
result.addListener(&collector);
CPPUNIT_NS::BriefTestProgressListener brief;
result.addListener(&brief); =20
CPPUNIT_NS::TestRunner runner;
runner.addTest(suite);
runner.run(result, "RPTest");
CPPUNIT_NS::CompilerOutputter outputter(&collector, =
CPPUNIT_NS::stdCOut());
outputter.write();=20
Happy New Year.
Vincent.
|
|
From: <vri...@us...> - 2005-12-24 15:02:25
|
> My scenario is slightly different. I have one test-suite and two =
testcases within that suite. Here is how my class and registration =
looks like:
>=20
> class RPTest : public CPPUNIT_NS::TestFixture{
> CPPUNIT_TEST_SUITE( RPTest );
> CPPUNIT_TEST( testConnection );
> CPPUNIT_TEST( testSession );=20
> CPPUNIT_TEST_SUITE_END();
> public:
> ....
> };
>=20
> CPPUNIT_TEST_SUITE_REGISTRATION( RPTest );
>=20
> I want to print names of testcases within the test suite like
> testConnection
> testSession
>=20
> How can I do this?
You have to go on step deeper !
TestFactoryRegistry::makeTest() returns a tree of Test.
The childs are the test classes.
The childs of the childs are the test methods.
So if you try :
CPPUNIT_NS::Test *childTest =3D suite->getChildTestAt( 0 );
CPPUNIT_NS::Test *methodTest =3D childTest->getChildTestAt( 0 );
cout << "MethodTestName is: " << methodTest->getName() << endl;
You will get : "RPTest::testConnection"
It should be good !
> Anyone tried to run subset of testcases within a test-suite in =
non-interactive mode? Any suggestions?
Try this :
CPPUNIT_NS::Test* testToRun =3D =
suite->findTest("RPTest::testConnection");
...
Vincent.
|
|
From: Srivalli A. <sar...@ya...> - 2005-12-23 18:21:23
|
My scenario is slightly different. I have one test-suite and two testcases within that suite. Here is how my class and registration looks like:
class RPTest : public CPPUNIT_NS::TestFixture{
CPPUNIT_TEST_SUITE( RPTest );
CPPUNIT_TEST( testConnection );
CPPUNIT_TEST( testSession );
CPPUNIT_TEST_SUITE_END();
public:
....
};
CPPUNIT_TEST_SUITE_REGISTRATION( RPTest );
I want to print names of testcases within the test suite like
testConnection
testSession
How can I do this?
Anyone tried to run subset of testcases within a test-suite in non-interactive mode? Any suggestions?
Thanks
Srivalli.
Vincent Rivière <vri...@us...> wrote:
> When I try to get name of a testcase it returns only the suite name.
>
> CPPUNIT_NS::Test *suite = CPPUNIT_NS::TestFactoryRegistry::getRegistry().makeTest();
> CPPUNIT_NS::Test *childTest = suite->getChildTestAt( 0 );
> cout << "ChildTestName is: " << childTest->getName() << endl;
>
> CPPUNIT_NS::Test *childTest2 = suite->getChildTestAt( 1 );
> cout << "ChildTestName2 is: " << childTest2->getName() << endl;
Sorry, but for me it works as expected.
I use the lastest CVS version.
I have 2 tests :
class AssertMemoryTest : public CPPUNIT_NS::TestFixture { ... }
CPPUNIT_TEST_SUITE_REGISTRATION(AssertMemoryTest);
class AssertStringTest : public CPPUNIT_NS::TestFixture { ... }
CPPUNIT_TEST_SUITE_REGISTRATION(AssertStringTest);
When I run your code, I get the names of my 2 tests :
AssertMemoryTest
AssertStringTest
You may have made a mistake somewhere else.
First of all, try this just after calling makeTest():
int count = suite->getChildTestCount();
In my case, I get count == 2.
And you ?
Good luck.
Vincent Rivière.
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Cppunit-devel mailing list
Cpp...@li...
https://lists.sourceforge.net/lists/listinfo/cppunit-devel
---------------------------------
Yahoo! for Good - Make a difference this year. |
|
From: <vri...@us...> - 2005-12-23 10:08:07
|
> When I try to get name of a testcase it returns only the suite name.=20
>=20
> CPPUNIT_NS::Test *suite =3D =
CPPUNIT_NS::TestFactoryRegistry::getRegistry().makeTest();
> CPPUNIT_NS::Test *childTest =3D suite->getChildTestAt( 0 );
> cout << "ChildTestName is: " << childTest->getName() << endl;
>=20
> CPPUNIT_NS::Test *childTest2 =3D suite->getChildTestAt( 1 );
> cout << "ChildTestName2 is: " << childTest2->getName() << endl;
Sorry, but for me it works as expected.
I use the lastest CVS version.
I have 2 tests :
class AssertMemoryTest : public CPPUNIT_NS::TestFixture { ... }
CPPUNIT_TEST_SUITE_REGISTRATION(AssertMemoryTest);
class AssertStringTest : public CPPUNIT_NS::TestFixture { ... }
CPPUNIT_TEST_SUITE_REGISTRATION(AssertStringTest);
When I run your code, I get the names of my 2 tests :
AssertMemoryTest=20
AssertStringTest
You may have made a mistake somewhere else.
First of all, try this just after calling makeTest():
int count =3D suite->getChildTestCount();
In my case, I get count =3D=3D 2.
And you ?
Good luck.
Vincent Rivi=E8re.
|
|
From: <vin...@fr...> - 2005-12-23 10:04:28
|
> When I try to get name of a testcase it returns only the suite name.=20
>=20
> CPPUNIT_NS::Test *suite =3D =
CPPUNIT_NS::TestFactoryRegistry::getRegistry().makeTest();
> CPPUNIT_NS::Test *childTest =3D suite->getChildTestAt( 0 );
> cout << "ChildTestName is: " << childTest->getName() << endl;
>=20
> CPPUNIT_NS::Test *childTest2 =3D suite->getChildTestAt( 1 );
> cout << "ChildTestName2 is: " << childTest2->getName() << endl;
Sorry, but for me it works as expected.
I use the lastest CVS version.
I have 2 tests :
class AssertMemoryTest : public CPPUNIT_NS::TestFixture { ... }
CPPUNIT_TEST_SUITE_REGISTRATION(AssertMemoryTest);
class AssertStringTest : public CPPUNIT_NS::TestFixture { ... }
CPPUNIT_TEST_SUITE_REGISTRATION(AssertStringTest);
When I run your code, I get the names of my 2 tests :
AssertMemoryTest=20
AssertStringTest
You may have made a mistake somewhere else.
First of all, try this just after calling makeTest():
int count =3D suite->getChildTestCount();
In my case, I get count =3D=3D 2.
And you ?
Good luck.
Vincent Rivi=E8re.
|
|
From: Srivalli A. <sar...@ya...> - 2005-12-22 19:33:23
|
Hi!
I have written a few testcases in one testsuite using CPPUnit in non-interactive mode (console application). I am trying to provide an option of running a subset of testcases.
When I try to get name of a testcase it returns only the suite name.
CPPUNIT_NS::Test *suite = CPPUNIT_NS::TestFactoryRegistry::getRegistry().makeTest();
CPPUNIT_NS::Test *childTest = suite->getChildTestAt( 0 );
cout << "ChildTestName is: " << childTest->getName() << endl;
CPPUNIT_NS::Test *childTest2 = suite->getChildTestAt( 1 );
cout << "ChildTestName2 is: " << childTest2->getName() << endl;
How can I get name of testcase that is within the suite?
Is there an example of running subset of tests using CPPUnit in non-interactive mode?
Thanks
Srivalli.
---------------------------------
Yahoo! DSL Something to write home about. Just $16.99/mo. or less |
|
From: Rick G. <Ric...@na...> - 2005-12-14 22:46:13
|
Dear CppUnit Developers;
I am trying to get CppUnit up and running on my machine (and hopefully
integrated with Eclipse at some point), and have had several issues in
trying to work through the Cookbook and Money example. I'm coming from
doing Java development with Eclipse to doing C/C++, and I'd like to have
the same tools available, that is, unit testing, refactoring, etc.
Hence the interest in CppUnit with Eclipse. However, I am a newbie to
the GNU toolchain, so please feel free to point me to where these issues
may already be documented.
=20
Since the Cookbook example does not provide any information on
tool/envrionment setup, I switched to the Money example, and ran across
the following six issues:
=20
1.) Warnings from aclocal:
Running aclocal using the configure.in from the Money example gave the
following warnings:
/usr/share/aclocal/libsmi.m4:8: warning: underquoted definition of
AM_PATH_LIBSMI
run info '(automake)Extending aclocal'
or see
http://sources.redhat.com/automake/automake.html#Extending-aclocal
/usr/share/aclocal/cppunit.m4:4: warning: underquoted definition of
AM_PATH_CPPUNIT
I didn't know if these could be ignored or not. It seems they can be
ignored, but perhaps either the quoting level can be fixed, or a note
added to the Money example that these warnings can be ignored.
2.) MoneyApp.cpp compile error:
MoneyApp.cpp:1:20: stdafx.h: No such file or directory
=20
I don't have stdafx.h on my system anywhere. Removing the line allowed
compilation to complete. Is this line required? Should stdafx.h be
part of Cygwin or Windows XP or CppUnit? Perhaps a comment or
appropriate #ifdef in the code could be added?
3.) Error from g++:
Using the configure.in and Makefile.am provided in the Money example to
generate the Makefile, make check gave the following error:
g++ -g -O2 -o MoneyApp.exe -ldl MoneyApp-MoneyTest.o
MoneyApp-MoneyApp.o =20
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld:
cannot find -ldl
I found a reference on the Internet that "-ldl" was for Linux, and could
be ignored on Cygwin. If this is true, this should be documented on the
example page.
4.) Duplicate definition in Makefile.am?:
Following the previous issue, I noticed that MoneyApp_LDFLAGS is defined
twice in Makefile.amas shown in the example:
MoneyApp_LDFLAGS =3D $(CPPUNIT_LIBS)
MoneyApp_LDFLAGS =3D -ldl
Is this correct?
5.) Incorrect order of link library option?:
After removing the "MoneyApp_LDFLAGS =3D -ldl" line from Makefile.am and
rebuilding the Makefile, make check then gives a bunch of undefined
references, starting with:
g++ -g -O2 -o MoneyApp.exe -lcppunit MoneyApp-MoneyTest.o
MoneyApp-MoneyApp.o =20
MoneyApp-MoneyApp.o: In function `main':
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/ext/new_allocator.h:62:
undefined reference to
`CppUnit::TestFactoryRegistry::getRegistry(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)'
In looking into this, the "-lcppunit" should occur after the list of
object files. So in the Makefile, it should be part of the LIBS
definition, not the MoneyApp_LDFLAG definition. Is this perhaps a
problem in Makefile.am?
6.) Segmentation fault:
After tweaking the Makefile to put the "-lcppunit" after the object
files, make check completed and ran, but with a segmentation fault:
g++ -g -O2 -o MoneyApp.exe MoneyApp-MoneyTest.o
MoneyApp-MoneyApp.o -lcppunit
make[1]: Leaving directory `/home/rgould/money'
make check-TESTS
make[1]: Entering directory `/home/rgould/money'
OK (/bin/sh: line 1: 1592 Segmentation fault (core dumped)
${dir}$tst
FAIL: MoneyApp
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
1 of 1 tests failed
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
make[1]: *** [check-TESTS] Error 1
make[1]: Leaving directory `/home/rgould/money'
make: *** [check-am] Error 2
Note that this is using MoneyApp.cpp as first presented in the example
(minus the #include "stdafx.h") - no test fixture or tests as added
later in the example.
I am running Cygwin 1.5.18-1 (with CppUnit 1.9.14-1) on Windows XP
Professional Version 2002, Service Pack 1.
If these are legitimate issues, perhaps the Money example page can be
updated accordingly. If it is a matter of my ignorance, perhaps adding
some notes to the Money example where other newbies can go learn the
background necessary to run the example.
Regards,=20
Rick Gould
Senior Software Developer
DDI: +64 9 442 8790
Navman New Zealand
7-21 Kawana Street, Northcote=20
PO Box. 68 155 Newton=20
Auckland, New Zealand
TEL: +64 9 481 0500
FAX: +64 9 480 3176
http://www.navman.com
Designers & Manufacturers of GPS, Communication and Marine Products
=20
This email (including any attachments) is confidential, may be
privileged and contain rights that belong to Navman New Zealand. Any
unauthorised use of this email is expressly prohibited. If you have
received this email in error, please notify the sender immediately by
return email, fax or phone and then delete all copies of this email and
any attachments to it. This email does not necessarily reflect the views
of Navman New Zealand.
To the maximum extent permitted by law, Navman New Zealand will not be
liable in any way (including in respect of negligence) for viruses and
other defects or changes made to this email or any attachments to it
after transmission from Navman New Zealand.
|
|
From: Baptiste L. <bl...@us...> - 2005-11-30 17:18:34
|
You need to add the path to cppunit *include* directory. E.g. for me it =
is:
E:\prg\vc\Lib\cppunit\include
Baptiste.
----- Original Message -----=20
From: Srivalli Arkalgud=20
To: cpp...@li...=20
Sent: Wednesday, November 30, 2005 1:45 AM
Subject: [Cppunit-devel] C1083-Cannot open include file =
<cppunit/extensions/HelperMacros.h>
Hello!
I am a newbie in CPPUnit. I tried to compile a testClass file called =
RPTest.h in Visual Studio .NET 2003 whose first few lines look like:
#ifndef RPTest_H
#define RPTest_H
#include <cppunit/extensions/HelperMacros.h>
class RPTest : public CPPUNIT_NS::TestFixture
{
....
}
I get following error when I compile RPTest.cpp:
c:\xxx\RPTest.h(5): fatal error C1083: Cannot open include file: =
'cppunit/extensions/HelperMacros.h': No such file or directory
Compiler complains about not finding HelperMacros.h although the file =
is located on the drive. File is not read-only.=20
The associated cpp file RPTest.cpp looks like:
#include "StdAfx.h"
#include "RPTest.h"
// Registers the fixture into the 'registry'
CPPUNIT_TEST_SUITE_REGISTRATION( RPTest );
void RPTest::setUp(){
}
void RPTest::tearDown(){
}
I also added the path to CPPUnit include directory. I did this by =
right-clicking solution project name and selecting properties --> C/C++ =
--> General --> Additional Include Directories.
Am I missing something?
Thanks
Srivalli.
-------------------------------------------------------------------------=
-----
Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
---
Baptiste Lepilleur <bl...@us...>
CppUnit maintainer
OpenTest and CppUnit 2 developer. |
|
From: Srivalli A. <sar...@ya...> - 2005-11-30 00:45:20
|
Hello!
I am a newbie in CPPUnit. I tried to compile a testClass file called RPTest.h in Visual Studio .NET 2003 whose first few lines look like:
#ifndef RPTest_H
#define RPTest_H
#include <cppunit/extensions/HelperMacros.h>
class RPTest : public CPPUNIT_NS::TestFixture
{
....
}
I get following error when I compile RPTest.cpp:
c:\xxx\RPTest.h(5): fatal error C1083: Cannot open include file: 'cppunit/extensions/HelperMacros.h': No such file or directory
Compiler complains about not finding HelperMacros.h although the file is located on the drive. File is not read-only.
The associated cpp file RPTest.cpp looks like:
#include "StdAfx.h"
#include "RPTest.h"
// Registers the fixture into the 'registry'
CPPUNIT_TEST_SUITE_REGISTRATION( RPTest );
void RPTest::setUp(){
}
void RPTest::tearDown(){
}
I also added the path to CPPUnit include directory. I did this by right-clicking solution project name and selecting properties --> C/C++ --> General --> Additional Include Directories.
Am I missing something?
Thanks
Srivalli.
---------------------------------
Yahoo! Music Unlimited - Access over 1 million songs. Try it free. |
|
From: Srivalli A. <sar...@ya...> - 2005-11-30 00:45:13
|
Hello!
I am a newbie in CPPUnit. I tried to compile a testClass file called RPTest.h in Visual Studio .NET 2003 whose first few lines look like:
#ifndef RPTest_H
#define RPTest_H
#include <cppunit/extensions/HelperMacros.h>
class RPTest : public CPPUNIT_NS::TestFixture
{
....
}
I get following error when I compile RPTest.cpp:
c:\xxx\RPTest.h(5): fatal error C1083: Cannot open include file: 'cppunit/extensions/HelperMacros.h': No such file or directory
Compiler complains about not finding HelperMacros.h although the file is located on the drive. File is not read-only.
The associated cpp file RPTest.cpp looks like:
#include "StdAfx.h"
#include "RPTest.h"
// Registers the fixture into the 'registry'
CPPUNIT_TEST_SUITE_REGISTRATION( RPTest );
void RPTest::setUp(){
}
void RPTest::tearDown(){
}
I also added the path to CPPUnit include directory. I did this by right-clicking solution project name and selecting properties --> C/C++ --> General --> Additional Include Directories.
Am I missing something?
Thanks
Srivalli.
---------------------------------
Yahoo! Music Unlimited - Access over 1 million songs. Try it free. |
|
From: Francois B. J. <fb...@mt...> - 2005-11-22 13:46:05
|
Hi, Thank you for a very useful framework. We are using CPPUnit to manage our GUI and unit tests successfully. There is one question from me though : How does one use the property assigned using CPPUNIT_TEST_SUITE_PROPERTY later on, say when implementing CPPUNIT_NS::TestListener to format the test output? Regards Francois B. Joubert Software Engineer M-Tech Industrial (Pty) Ltd. P.O. Box 19855, Noordbrug, 2522, South Africa 5 Luke street, Potchefstroom, South Africa. Mobile: +27 (0) 82 442 4573 Tel: +27 (0) 18 297 0326/7 Fax: +27 (0) 18 297 0318 E-mail: fb...@mt... www.mtechindustrial.com |
|
From: Lee H. <blu...@gm...> - 2005-11-16 08:03:54
|
Hi i am a new bie in CppUnit. When i used CppUnit to test the project, a strange thing happened: I find that there is a place divided by zero, but the CppUnit printf "<ok>= " without any EXCEPTION throw out. Why this happened? How should i do, and where i can find the solution? Any answer is appreciated. -- Kindly Regards! Yours Lee |
|
From: David R. <dre...@gm...> - 2005-10-24 15:01:15
|
On 10/17/05, ana...@in... <ana...@in...> wrote:
>
> Hi,
>
> I need to know how to build cppUnit source code using GnuMake file. I hav=
e
> installed cygwin and downloaded
> cppunit-1.11.0 from sourceforge.
>
> Can you please suggest me how to go about building the libraries using
> makefile.
>
> Thanks
> Anant
rennalls@pc /home/rennalls/cppunit-1.10.2> ./configure
checking for a BSD-compatible install... /usr/bin/install -c
..snip..
rennalls@pc /home/rennalls/cppunit-1.10.2> make
Making all in src
..snip..
rennalls@pc /home/rennalls/cppunit-1.10.2> make install
Making install in src
..snip..
rennalls@pc /home/rennalls/cppunit-1.10.2>
- David
|
|
From: David R. <dre...@gm...> - 2005-10-21 14:11:27
|
On 10/20/05, Baptiste Lepilleur <bl...@us...> wrote: > David Rennalls wrote: > > Hi, > > The CppUnit2 docs > > (http://cppunit.sourceforge.net/cppunit-wiki/CppUnit2/ThreadedTestCase) > > mention support for a ThreadedTestCase, specifically I'm interested in > > "Merging failures of created thread with the original thread > > failures". Are there any workarounds to get this behaviour with > > cppunit 1.10.2 ? > > You need to catch the CppUnit::Exception that is thrown in the created > thread, and rethrow that exception in the original thread. > > Baptiste. > > --- > Baptiste Lepilleur <bl...@us...> > CppUnit maintainer > OpenTest and CppUnit 2 developer. Thanks, that works well. - David |
|
From: Baptiste L. <bl...@us...> - 2005-10-20 08:10:47
|
David Rennalls wrote: > Hi, > The CppUnit2 docs > (http://cppunit.sourceforge.net/cppunit-wiki/CppUnit2/ThreadedTestCase) > mention support for a ThreadedTestCase, specifically I'm interested in > "Merging failures of created thread with the original thread > failures". Are there any workarounds to get this behaviour with > cppunit 1.10.2 ? You need to catch the CppUnit::Exception that is thrown in the created thread, and rethrow that exception in the original thread. Baptiste. --- Baptiste Lepilleur <bl...@us...> CppUnit maintainer OpenTest and CppUnit 2 developer. |
|
From: <ali...@au...> - 2005-10-19 22:25:11
|
Hello,
I got this message at the end of the test, and i really do not know why t=
he
exception occurs.
I tracked the program and found that the program hangs up when it calls a=
thread
safe method (at the point of EnterCriticalSection).=20
methodName
{
EnterCriticalSection(); //the program hangs up here
}
I do not know why it hangs up because i have not use threading yet. And i=
t is
all right with other thread safe method.
Could you please tell me what is wrong here?
Thanks
Alison
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
|