The most recent content from our members.
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) {…
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…
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…
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…
It looks like you're new here. Sign in or register to get started.