Skip to content

Commit 2a6e543

Browse files
committed
Clarify conditions of lit exiting with exit code 1
1 parent 06963fb commit 2a6e543

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

llvm/docs/CommandGuide/lit.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,10 @@ ADDITIONAL OPTIONS
384384
EXIT STATUS
385385
-----------
386386

387-
:program:`lit` will exit with an exit code of 1 if there are any FAIL or XPASS
388-
results. Otherwise, it will exit with the status 0. Other exit codes are used
387+
:program:`lit` will exit with an exit code of 1 if there are any failures (i.e.
388+
unresolved, timed out, failed or unexpectedly passed tests, see also
389+
:option:`--report-failures-only`) and :option:`--ignore-fail` has not been
390+
passed. Otherwise, it will exit with the status 0. Other exit codes are used
389391
for non-test related failures (for example a user error or an internal program
390392
error).
391393

0 commit comments

Comments
 (0)