return-app-exitcode
Return the exit code from the target application.
Syntax
-return-app-exitcode
Default
By default, an
exit code is returned:
inspxe-cl
- 0
- Success and no new problems detected
- 1
- Usage error
- 2
- Internal error
- 4
- Application returned a non-zero exit code
- 8
- At least one new problem detected
- 12
- Application returned a non-zero exit code and at least one new problem detected
Actions Modified
Description
Use the
return-app-exitcode
action-option to return the exit code returned by the target application, instead of Intel Inspector
exit codes.Example
This command:
- Runs aDetect Deadlocks and Data Races (ti2)analysis on the applicationmyApp.
- Stores the result in the defaultr@@@ti2result directory in the current working directory, where@@@represents the next available number.
- Generates a summary report of detected problems, and writes it to theinspxe-cl.txtfile in the result directory.
- Returns the exit code returned bymyApp.
$ inspxe-cl -collect ti2 -return-app-exitcode -- myApp