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.
aa398034ebRobin Voetter committed on 7/1/2023, 12:29:11 PMparent74f40dd
1 file changedLine totals unavailable