<!--
{
  "availability" : [
    "Swift: 6.2.0 -",
    "Xcode: 26.0.0 -",
    "macOS: -",
    "swift: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Testing",
  "identifier" : "/documentation/Testing/ExitTest/Result",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Swift Testing",
      "Testing"
    ],
    "preciseIdentifier" : "s:7Testing8ExitTestV6ResultV"
  },
  "title" : "ExitTest.Result"
}
-->

# ExitTest.Result

A type representing the result of an exit test after it has exited and
returned control to the calling test function.

```
struct Result
```

## Overview

Both [`expect(processExitsWith:observing:_:sourceLocation:performing:)`](/documentation/Testing/expect(processExitsWith:observing:_:sourceLocation:performing:))
and [`require(processExitsWith:observing:_:sourceLocation:performing:)`](/documentation/Testing/require(processExitsWith:observing:_:sourceLocation:performing:))
return instances of this type.

## Topics

### Instance Properties

[`var exitStatus: ExitStatus`](/documentation/Testing/ExitTest/Result/exitStatus)

The exit status reported by the process hosting the exit test.

[`var standardErrorContent: [UInt8]`](/documentation/Testing/ExitTest/Result/standardErrorContent)

All bytes written to the standard error stream of the exit test before
it exited.

[`var standardOutputContent: [UInt8]`](/documentation/Testing/ExitTest/Result/standardOutputContent)

All bytes written to the standard output stream of the exit test before
it exited.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)