Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.
Discussion List
Need timeout == pass
Infinite loop timeoutI want C++Test to report a success if timeout is triggered. I have an infinitely looping task. I expect a timeout. I don't want the timeout reported as an error. Here is the basic setup of the function (which I am not free to change) ... void MyInfiniteTask(void) { while (TRUE) {…
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: CODE ... .... const ::QChar * _arg1_0 = 0 ; /* Initializing constructor argument 2 (unknown) */ int _arg2_0 = cpptestLimitsGetMaxInt(); ::QString _text…
Timeout is normal
I have a piece of code that should wait on a semaphore for forever if everything is working OK. /*Setup threads and wait*/ sem_wait(&semaphore); //Wait for forever unless program termination is required. /*Case for exit conditions*/ and should only fail if one of the child threads releases the semaphore, meaning some…
How to examine data that was sent standard out
Data sent to standard out from a file1. Create a simple function that will accept two arguments, a filename and mode File: try.c -------------cut---------------------- /* try.c */ #include <stdio.h> /* the foo function will accept the name of the file and the mode as arguments*/ /* and pass the values to fopen, then prints…