#zig test in the stdlib

1 messages · Page 1 of 1 (latest)

stuck root
#

Hey, I had PR'd a GUID format for UEFI a while ago, and then recently something to make it not hit unreachable - but I had some @byteSwaps for LE because of slice formatting - which I shouldn't have anyways tbf, but I had thought I was testing with

zig test lib/std/std.zig --test-filter os.uefi. --zig-lib-dir lib

but even with like

test {
    return error.Die;
}

in lib/std/os/uefi.zig, I still get "63 tests passed" - am I invoking the test command wrong?

wild peak
#

std.os.uefi is only referenced when the target is uefi

stuck root
#

ahh ok

#

ty

#

Is there a decent way to test it anyways? targeting uefi makes the rest of the stdlib unhappy

wild peak
#

not really, uefi doesn't have enough std support to use the default test runner, so outside of writing your own test runner that works on uefi theres not much it can do

stuck root
#

understandable