# testing: disable printing for targets that do not support it · gitcafe/zig

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

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

Visibility: public

Requested revision: aa398034eb1b2fd74e1815ae2e75ca1a3ca4a567

Requested commit: aa398034eb1b2fd74e1815ae2e75ca1a3ca4a567

Commit: aa398034eb1b2fd74e1815ae2e75ca1a3ca4a567

Tree: 089f0f7f0a1ad1b6e304d22f83cf4d71c57c4561

Author: Robin Voetter

Committer: Robin Voetter

## Message

```
testing: disable printing for targets that do not support it

The SPIR-V cannot print the helpful error messages from the
std.testing module. This commit overrides the default print
function used here to one that only prints if the target supports
it. For now, its only done for SPIR-V, but this function could
be adapted to more targets that need it.

```

## Parents

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

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