Runtime exception in the test case generated!
Exceptions in QString in the test cases generated...Consider the following code Snippet!! - Its a Qt based application... In one of the generated test case, we have:
const ::QChar * _arg1_0 = 0 ;
/* Initializing constructor argument 2 (unknown) */
int _arg2_0 = cpptestLimitsGetMaxInt();
::QString _text (_arg1_0, _arg2_0); // QString ( const QChar * unicode, int size )
As per the details of the constructor, which reads this -> "Constructs a string initialized with the first size characters of the QChar array unicode. "
Since we are passing 'cpptestLimitsGetMaxInt()' to the size argument, the constructor, throws an assertion, which is thrown back to the test case -> which I think is the bug!!
So, the test cases generated in this case (in my case - most % of assertions are of this kind !! ) are faulty... Is there any workarounds for this problem?
Any help would be of great use to me..