# std/special: fix 'zig test \-\-test-evented-io · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/dc214e041eda1461cc2317523e1656c5a0f55c1a)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: dc214e041eda1461cc2317523e1656c5a0f55c1a

Requested commit: dc214e041eda1461cc2317523e1656c5a0f55c1a

Commit: dc214e041eda1461cc2317523e1656c5a0f55c1a

Tree: 335b405606e20b7412e5a0b26fb02b923451c220

Author: Stephen Gutekanst

Committer: Veikka Tuominen

## Message

```
std/special: fix 'zig test --test-evented-io

Investigating hexops/zorex#4, I found that `--test-evented-io` is currently broken in
the latest Zig nightly. See #9779 for a small reproduction.

The issue is that allocation errors here are not correctly handled, as this function
returns `void` and all other error cases `@panic`, the allocation failure should also
use `@panic`.

Fixes #9779
Helps hexops/zorex#4

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>

```

## Parents

- [6f85a67987e187b8fdc29570d229bf5ad4f6a947](https://git.cafe/gitcafe/zig/commit/6f85a67987e187b8fdc29570d229bf5ad4f6a947?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/dc214e041eda1461cc2317523e1656c5a0f55c1a?format=markdown)
