Open linusg opened 2 months ago
$ zig test src/link/MachO/dyld_info/Rebase.zig
src/link/MachO/dyld_info/Rebase.zig:284:48: error: no field or member function named 'size' in 'Rebase'
try testing.expectEqual(@as(u64, 0), rebase.size());
~~~~~~^~~~~
The MachO test isn't run as part of the compiler test suite. It's a test just copied over from zld and hasn't been updated after #20650. This will just happen when the changes are down streamed into zld I think.
I found that by running zig test on something else, it doesn't look like any test blocks in compiler source files are being run.
Zig Version
0.14.0-dev.1409+6d2945f1f
Steps to Reproduce and Observed Behavior
I tried to run
zig test src/InternPool.zig
while making some changes there.https://github.com/ziglang/zig/blob/23a80b6c47f5c5a68dba29b808a5ffa5bed69db9/src/Package/Fetch.zig#L2253
TestFetchBuilder
in turn is being used in a number oftest
blocks in the same file, which clearly are not being tested.Expected Behavior
These tests should: