Error Messages during Program Execution

During test runs with the instrumented program, warning and error messages are written by the Testwell CTC++ run-time library to stderr.

The exit value of the test program is 1 when an error has occurred in the initialization of the Testwell CTC++ run-time library internal data structures and 2 when an error has occurred when processing a #pragma command. When an error occurs during the data file writing at the program exit, the exit value of the original program is used.

In the Host-Target variant of the run-time library, no error messages are written out by the delivered default implementation.

List of error messages:

1: Incompatible number format in file X
The data file X is corrupted. Delete it and try again.
2: Bad identification stamp in file X. Delete it and rerun.
The data file X is from a different major version of Testwell CTC++ and cannot be used with this version.
4: Cannot close file X: Y
Closing of file X failed for reason Y.
5: Cannot create file X: Y
Creation of file X failed for reason Y.
8: Cannot open file X: Y
Opening of file X failed for reason Y.
9: Out of memory
Some internal processing in Testwell CTC++ run-time requiring heap space had failed.
10: Cannot read file X: Y
Reading from file X failed for reason Y.
11: Cannot write file X: Y
Writing to file X failed for reason Y.
12: Cannot create lock file X.lock: Y
Failed to create the lock file X.lock for the data file X for reason Y.
13: Cannot remove lock file X.lock: Y
Failed to delete the lock file X.lock of the data file X for reason Y.
14: Environment variable X has illegal value Y
Value Y of environment variable X is not accepted by the runtime of Testwell CTC++.
15: Bad control data of file 'X' in memory
Some information concerning the specified source file is not valid in the memory. For example, the name of a source file is an empty string or its timestamp is zero.
16: Bad data file X
The specified data file is corrupted. Some information concerning a source file is not valid. Delete the file and try again.
17: Too long testcase name X
The testcase name X is longer than its 32 char maximum. Also note that when the testcase name is used to construct the data file name, the file system’s constraints on file name length and form must be met, too.