fpt and WinFPT Reference Manual - Command-line Commands
| SimCon Home | Ref Manual Home |
EXIT STATUS
Syntax:
EXIT STATUS FOR WARNINGS: <integer> EXIT STATUS FOR ERRORS: <integer> EXIT STATUS FOR FATAL ERRORS: <integer>
Function:
These commands control the exit status returned to the operating system when fpt is run. If an fpt run generates no diagnostics, or only notes, the exit status is always zero, which indicates correct execution. If an fpt run generates warnings, errors or fatal errors these commands specify the exit status returned.
Where to Use these Commands
Operating system command line | Yes |
Configuration file, config.fsp | Yes |
Specification (fsp) files, *.fsp | Yes |
Interactively, to FPT> prompt | Yes |
Interactive command files | Yes |
Embedded in the Fortran code | Yes |
Default
The default exit status values are:
EXIT STATUS FOR WARNINGS: 0
EXIT STATUS FOR ERRORS: 1
EXIT STATUS FOR FATAL ERRORS: 3
The non-zero value when fpt has detected errors is chosen because the user's program is not expected to run correctly when errors have been reported.
(Note that defaults may be changed in the configuration file)
Copyright ©1995 to 2024 Software Validation Ltd. All rights reserved.