Home » Developing U++ » U++ Developers corner » Testing framework in U++.
|
|
Re: Testing framework in U++. [message #32585 is a reply to message #32572] |
Thu, 26 May 2011 10:03   |
|
I tried the package "UnitTestTest" from bazaar and get the error:
Quote: |
Exception: C0000005 at 00000000
EXCEPTION_ACCESS_VIOLATION
reading at 00000000
|
At UnitTest++/Test.cpp line 39 in the method: void Test::Run(TestResults& testResults) const
OS: windows xp sp3, builded with MSC9
[Updated on: Thu, 26 May 2011 10:06] Report message to a moderator
|
|
|
Re: Testing framework in U++. [message #32591 is a reply to message #32570] |
Thu, 26 May 2011 11:59   |
mr_ped
Messages: 826 Registered: November 2005 Location: Czech Republic - Praha
|
Experienced Contributor |
|
|
That's too deep level for meaningful problem report, you have to go level up to see what test exactly did crash the program.
Although I think I know which one was crashing it.
See UnitTestTest/TestTest.cpp:64 "TEST (CrashingTestsAreReportedAsFailures)"
Comment the whole test out, and try again, it should finish correctly with something like:
Success: 165 tests passed.
Test time: 0.24 seconds.
I'm not sure how to fix the compiler settings/upp hooks to catch crashes as exceptions, it's a known problem I documented in UnitTest++/README (see at end of file known issues "*B*").
As my apps don't crash very often, I don't care this feature does not work for me, but if anyone can contribute fix (how to turn crashing exceptions into c++ exceptions which will be catch by UnitTest++), I will be very glad for such fix.
In the meantime, comment out the crash test, and don't crash in your app too.
[Updated on: Thu, 26 May 2011 12:00] Report message to a moderator
|
|
|
Re: Testing framework in U++. [message #32770 is a reply to message #32570] |
Tue, 07 June 2011 11:32  |
mr_ped
Messages: 826 Registered: November 2005 Location: Czech Republic - Praha
|
Experienced Contributor |
|
|
tojocky: did it work for you?
I'm sort of curious, because so far as I know I'm the only one using the UnitTest++...
|
|
|
Goto Forum:
Current Time: Sat Apr 26 15:03:22 CEST 2025
Total time taken to generate the page: 0.02833 seconds
|