An option for controlling run-time conditions

Option

Default

-ignore-run-time-environment

no

You can use the -ignore-run-time-environment option when you build your executable to make sure that the run-time options you specify remain in effect whenever the executable is run.

The -ignore-run-time-environment builds into an executable all the run-time options specified on the link line along with any run-time options specified in the PURECOVOPTIONS and PUREOPTIONS environment variables.

When the instrumented program runs, PureCoverage ignores the current option values set in environment variables in preference to the built-in values.

Use the -ignore-run-time-environment option when:

  • You want someone else to run your program without their run-time environment modifying your run-time option specifications

  • Your program is started automatically by another program and you cannot set the environment variable for that program

  • You have several instrumented programs running at one time and you cannot specify options for each program

Use the -ignore-run-time-environment option at build time only. PureCoverage ignores this option if you specify it at run time.

Note:

  • To find out what options are built into a PureCoverage instrumented program, use:

    % <purecovhome>/purecov_what_options <program name>