CoverageIsRunning

Examples       Related Topics

Description

Checks whether a program is running under PureCoverage.

Syntax

int CoverageIsRunning(void)

Returns

1

The program is running under PureCoverage.

0

The program is not running under PureCoverage.

Notes

§      This function is especially useful for enclosing special purpose application code when you run a program under PureCoverage. For example, in an interactive program where you don't want to record coverage data about an initial setup portion of the program, you might display a message box to begin recording data.

§      Use this function for native-compiled (unmanaged).

§      Do not use this function (a PureCoverage API function) for Sun Java or .NET managed code programs. Use instead the corresponding PureAPI function.

(C) Copyright IBM Corporation 1993, 2010.