---
title: failure
framework: testing
role: symbol
role_heading: Type Property
path: testing/exittest/condition/failure
---

# failure

A condition that matches when a process exits abnormally

## Declaration

```swift
static var failure: ExitTest.Condition { get }
```

## Mentioned in

Exit testing

## Discussion

Discussion This condition matches any exit code other than EXIT_SUCCESS or any signal that causes the process to exit.

## See Also

### Failing exit conditions

- [exitCode(_:)](testing/exittest/condition/exitcode(_:).md)
- [signal(_:)](testing/exittest/condition/signal(_:).md)
