---
title: ExitStatus
framework: testing
role: symbol
role_heading: Enumeration
path: testing/exitstatus
---

# ExitStatus

An enumeration describing possible status a process will report on exit.

## Declaration

```swift
enum ExitStatus
```

## Overview

Overview You can convert an instance of this type to an instance of ExitTest.Condition using init(_:). That value can then be used to describe the condition under which an exit test is expected to pass or fail by passing it to expect(processExitsWith:observing:_:sourceLocation:performing:) or require(processExitsWith:observing:_:sourceLocation:performing:).

## Topics

### Enumeration Cases

- [ExitStatus.exitCode(_:)](testing/exitstatus/exitcode(_:).md)
- [ExitStatus.signal(_:)](testing/exitstatus/signal(_:).md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Checking how processes exit

- [Exit testing](testing/exit-testing.md)
- [expect(processExitsWith:observing:_:sourceLocation:performing:)](testing/expect(processexitswith:observing:_:sourcelocation:performing:).md)
- [require(processExitsWith:observing:_:sourceLocation:performing:)](testing/require(processexitswith:observing:_:sourcelocation:performing:).md)
- [ExitTest](testing/exittest.md)
