Quantcast

Problem with binary installation of cppunit 1.12.1-2 with setup.exe version 2.774

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Problem with binary installation of cppunit 1.12.1-2 with setup.exe version 2.774

Anthony Ricke
Hello All,

I updated my cygwin installation using setup.exe version 2.774, and I
included the binary distribution of the cppunit package (cygwin
package version 1.12.1-2). I wrote compiled and built a simple unit
test program using G++ (cygwin package version 3.4.4-999). After
building and running the unit testing program, program gives the
following message (in summary):

                             terminate called after throwing an
instance of 'CppUnit::Exception'

This is not correct. The CppUnit framework should catch all CppUnit
exceptions and report them as unit test failures.

Next, I copied the source code package (using setup.exe). Then, I
un-compressed the tarball, and I built and installed the cppunit
package over the top of the binary distribution (using ./configure,
make, make check, make install). I re-built my simple unit testing
program, and I get the output:

$ ./a.exe
.F


!!!FAILURES!!!
Test Results:
Run:  1   Failures: 1   Errors: 0


1) test: MyUnitTests::test1 (F) line: 29 testme.cpp
forced failure
- This is a failure.

This is the expected output of this unit test.

I have attached the simple unit test example and my cygcheck output
file for your reference.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

testme.cpp (1K) Download Attachment
cygcheck.out (93K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Problem with binary installation of cppunit 1.12.1-2 with setup.exe version 2.774

marco atzeri-4
On 6/6/2012 4:00 PM, Anthony Ricke wrote:
> Hello All,
>
> I updated my cygwin installation using setup.exe version 2.774, and I
> included the binary distribution of the cppunit package (cygwin
> package version 1.12.1-2). I wrote compiled and built a simple unit
> test program using G++ (cygwin package version 3.4.4-999). After
> building and running the unit testing program, program gives the
> following message (in summary):

try again with gcc4-g++ 4.5.3-3

gcc-3 is really obsolete

Regards
Marco


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Problem with binary installation of cppunit 1.12.1-2 with setup.exe version 2.774

Csaba Raduly-2
On Wed, Jun 6, 2012 at 4:17 PM, marco atzeri  wrote:

> On 6/6/2012 4:00 PM, Anthony Ricke wrote:
>>
>> Hello All,
>>
>> I updated my cygwin installation using setup.exe version 2.774, and I
>> included the binary distribution of the cppunit package (cygwin
>> package version 1.12.1-2). I wrote compiled and built a simple unit
>> test program using G++ (cygwin package version 3.4.4-999). After
>> building and running the unit testing program, program gives the
>> following message (in summary):
>
>
> try again with gcc4-g++ 4.5.3-3
>
> gcc-3 is really obsolete

More likely, the problem is caused by the fact that the CppUnit
package in the Cygwin distribution is built by g++-4 (4.5.3) whereas
Anthony's object files were created by g++-3.

Csaba
--
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Problem with binary installation of cppunit 1.12.1-2 with setup.exe version 2.774

marco atzeri-4
On 6/6/2012 4:24 PM, Csaba Raduly wrote:

> On Wed, Jun 6, 2012 at 4:17 PM, marco atzeri  wrote:
>> On 6/6/2012 4:00 PM, Anthony Ricke wrote:
>>>
>>> Hello All,
>>>
>>> I updated my cygwin installation using setup.exe version 2.774, and I
>>> included the binary distribution of the cppunit package (cygwin
>>> package version 1.12.1-2). I wrote compiled and built a simple unit
>>> test program using G++ (cygwin package version 3.4.4-999). After
>>> building and running the unit testing program, program gives the
>>> following message (in summary):
>>
>>
>> try again with gcc4-g++ 4.5.3-3
>>
>> gcc-3 is really obsolete
>
> More likely, the problem is caused by the fact that the CppUnit
> package in the Cygwin distribution is built by g++-4 (4.5.3) whereas
> Anthony's object files were created by g++-3.
>
> Csaba

of course, I was just discouraging the use of gcc-3 at all.
Moreover exception with g++-3 was not really working well
and g++-4 use a different exception handler

Cheers
Marco

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Loading...