authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-10-24 00:30:17-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-10-24 00:32:18-04:00
log8591731f2b938b2b55b05181d5ec0e27f79c86fa
tree6fa4e9979f4d2a93a718b9344588aff21fd223be
parent17eb24a7e4b2bc5740dc15996acc4736833cb2a0
signaturelock-open Commit is signed but in an unrecognized format.

refAllDecls in a test block to limit when it gets run


3 files changed, 15 insertions(+), 14 deletions(-)

lib/std/math.zig+1-1
...@@ -202,7 +202,7 @@ pub const Complex = complex.Complex;...@@ -202,7 +202,7 @@ pub const Complex = complex.Complex;
202202
203pub const big = @import("math/big.zig");203pub const big = @import("math/big.zig");
204204
205comptime {205test "" {
206 std.meta.refAllDecls(@This());206 std.meta.refAllDecls(@This());
207}207}
208208
lib/std/os.zig+13-12
...@@ -34,18 +34,19 @@ pub const zen = @import("os/zen.zig");...@@ -34,18 +34,19 @@ pub const zen = @import("os/zen.zig");
3434
35comptime {35comptime {
36 assert(@import("std") == std); // std lib tests require --override-lib-dir36 assert(@import("std") == std); // std lib tests require --override-lib-dir
37 if (builtin.is_test) {37}
38 _ = darwin;38
39 _ = freebsd;39test "" {
40 _ = linux;40 _ = darwin;
41 _ = netbsd;41 _ = freebsd;
42 _ = uefi;42 _ = linux;
43 _ = wasi;43 _ = netbsd;
44 _ = windows;44 _ = uefi;
45 _ = zen;45 _ = wasi;
4646 _ = windows;
47 _ = @import("os/test.zig");47 _ = zen;
48 }48
49 _ = @import("os/test.zig");
49}50}
5051
51/// When linking libc, this is the C API. Otherwise, it is the OS-specific system interface.52/// When linking libc, this is the C API. Otherwise, it is the OS-specific system interface.
lib/std/std.zig+1-1
...@@ -65,6 +65,6 @@ pub const unicode = @import("unicode.zig");...@@ -65,6 +65,6 @@ pub const unicode = @import("unicode.zig");
65pub const valgrind = @import("valgrind.zig");65pub const valgrind = @import("valgrind.zig");
66pub const zig = @import("zig.zig");66pub const zig = @import("zig.zig");
6767
68comptime {68test "" {
69 meta.refAllDecls(@This());69 meta.refAllDecls(@This());
70}70}