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;
202202
203203pub const big = @import("math/big.zig");
204204
205comptime {
205test "" {
206206 std.meta.refAllDecls(@This());
207207}
208208
lib/std/os.zig+13-12
......@@ -34,18 +34,19 @@ pub const zen = @import("os/zen.zig");
3434
3535comptime {
3636 assert(@import("std") == std); // std lib tests require --override-lib-dir
37 if (builtin.is_test) {
38 _ = darwin;
39 _ = freebsd;
40 _ = linux;
41 _ = netbsd;
42 _ = uefi;
43 _ = wasi;
44 _ = windows;
45 _ = zen;
46
47 _ = @import("os/test.zig");
48 }
37}
38
39test "" {
40 _ = darwin;
41 _ = freebsd;
42 _ = linux;
43 _ = netbsd;
44 _ = uefi;
45 _ = wasi;
46 _ = windows;
47 _ = zen;
48
49 _ = @import("os/test.zig");
4950}
5051
5152/// 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");
6565pub const valgrind = @import("valgrind.zig");
6666pub const zig = @import("zig.zig");
6767
68comptime {
68test "" {
6969 meta.refAllDecls(@This());
7070}