---
title: "signal(_:)"
framework: testing
role: symbol
role_heading: Type Method
path: "testing/exittest/condition/signal(_:)"
---

# signal(_:)

Creates a condition that matches when a process exits with a given signal.

## Declaration

```swift
static func signal(_ signal: CInt) -> ExitTest.Condition
```

## Parameters

- `signal`: The signal that caused the process to exit.

## Mentioned in

Exit testing

## Discussion

Discussion The C programming language defines a number of standard signals. Platforms may additionally define their own non-standard signal codes:  |   |   |   |   |   |

## See Also

### Failing exit conditions

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