@zigc/lib 0.16.0-dev.3121 → 0.16.0-dev.3128
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/c/math.zig +15 -13
- package/compiler/build_runner.zig +1 -0
- package/compiler/test_runner.zig +191 -59
- package/fuzzer.zig +855 -307
- package/package.json +1 -1
- package/std/Build/Fuzz.zig +6 -19
- package/std/Build/Step/Run.zig +530 -68
- package/std/Build/abi.zig +39 -7
- package/std/Build.zig +3 -0
- package/std/compress/flate/Compress.zig +3 -3
- package/std/priority_dequeue.zig +13 -12
- package/std/priority_queue.zig +5 -4
- package/std/zig/Client.zig +8 -3
- package/std/zig/Server.zig +26 -0
- package/libc/mingw/complex/cabs.c +0 -48
- package/libc/mingw/complex/cabsf.c +0 -48
- package/libc/mingw/complex/cacos.c +0 -50
- package/libc/mingw/complex/cacosf.c +0 -50
- package/libc/mingw/complex/carg.c +0 -48
- package/libc/mingw/complex/cargf.c +0 -48
- package/libc/mingw/complex/casin.c +0 -50
- package/libc/mingw/complex/casinf.c +0 -50
- package/libc/mingw/complex/catan.c +0 -50
- package/libc/mingw/complex/catanf.c +0 -50
- package/libc/mingw/complex/ccos.c +0 -50
- package/libc/mingw/complex/ccosf.c +0 -50
- package/libc/mingw/complex/cexp.c +0 -48
- package/libc/mingw/complex/cexpf.c +0 -48
- package/libc/mingw/complex/cimag.c +0 -48
- package/libc/mingw/complex/cimagf.c +0 -48
- package/libc/mingw/complex/clog.c +0 -48
- package/libc/mingw/complex/clog10.c +0 -49
- package/libc/mingw/complex/clog10f.c +0 -49
- package/libc/mingw/complex/clogf.c +0 -48
- package/libc/mingw/complex/conj.c +0 -48
- package/libc/mingw/complex/conjf.c +0 -48
- package/libc/mingw/complex/cpow.c +0 -48
- package/libc/mingw/complex/cpowf.c +0 -48
- package/libc/mingw/complex/cproj.c +0 -48
- package/libc/mingw/complex/cprojf.c +0 -48
- package/libc/mingw/complex/creal.c +0 -48
- package/libc/mingw/complex/crealf.c +0 -48
- package/libc/mingw/complex/csin.c +0 -50
- package/libc/mingw/complex/csinf.c +0 -50
- package/libc/mingw/complex/csqrt.c +0 -48
- package/libc/mingw/complex/csqrtf.c +0 -48
- package/libc/mingw/complex/ctan.c +0 -50
- package/libc/mingw/complex/ctanf.c +0 -50
- package/libc/mingw/math/arm/s_rint.c +0 -86
- package/libc/mingw/math/arm/s_rintf.c +0 -51
- package/libc/mingw/math/bsd_private_base.h +0 -148
- package/libc/mingw/math/x86/acosf.c +0 -29
- package/libc/mingw/math/x86/atanf.c +0 -23
- package/libc/mingw/math/x86/atanl.c +0 -18
- package/libc/mingw/math/x86/ldexp.c +0 -23
- package/libc/mingw/math/x86/scalbn.S +0 -41
- package/libc/mingw/math/x86/scalbnf.S +0 -40
- package/libc/mingw/misc/btowc.c +0 -28
- package/libc/mingw/misc/wcstof.c +0 -66
- package/libc/mingw/misc/wcstoimax.c +0 -132
- package/libc/mingw/misc/wcstoumax.c +0 -126
- package/libc/mingw/misc/wctob.c +0 -29
- package/libc/mingw/misc/winbs_uint64.c +0 -6
- package/libc/mingw/misc/winbs_ulong.c +0 -6
- package/libc/mingw/misc/winbs_ushort.c +0 -6
- package/libc/mingw/stdio/_Exit.c +0 -10
- package/libc/mingw/stdio/_findfirst64i32.c +0 -21
- package/libc/mingw/stdio/_findnext64i32.c +0 -21
- package/libc/mingw/stdio/_fstat64i32.c +0 -37
- package/libc/mingw/stdio/_stat64i32.c +0 -37
- package/libc/mingw/stdio/_wfindfirst64i32.c +0 -21
- package/libc/mingw/stdio/_wfindnext64i32.c +0 -21
- package/libc/mingw/stdio/_wstat64i32.c +0 -37
- package/libc/musl/src/legacy/valloc.c +0 -8
- package/libc/musl/src/math/exp_data.c +0 -182
- package/libc/musl/src/math/exp_data.h +0 -26
- package/libc/musl/src/math/pow_data.c +0 -180
- package/libc/musl/src/math/pow_data.h +0 -22
- package/libc/wasi/libc-bottom-half/sources/reallocarray.c +0 -14
package/package.json
CHANGED
package/std/Build/Fuzz.zig
CHANGED
|
@@ -128,7 +128,7 @@ pub fn init(
|
|
|
128
128
|
|
|
129
129
|
pub fn start(fuzz: *Fuzz) void {
|
|
130
130
|
const io = fuzz.io;
|
|
131
|
-
fuzz.prog_node = fuzz.root_prog_node.start("Fuzzing",
|
|
131
|
+
fuzz.prog_node = fuzz.root_prog_node.start("Fuzzing", 0);
|
|
132
132
|
|
|
133
133
|
if (fuzz.mode == .forever) {
|
|
134
134
|
// For polling messages and sending updates to subscribers.
|
|
@@ -137,18 +137,8 @@ pub fn start(fuzz: *Fuzz) void {
|
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
for (fuzz.run_steps) |run| {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
// since they use the same Run step. See #30969
|
|
143
|
-
fatal("--fuzz not yet implemented for multiple tests", .{});
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
for (fuzz.run_steps) |run| {
|
|
148
|
-
for (run.fuzz_tests.items) |unit_test_name| {
|
|
149
|
-
assert(run.rebuilt_executable != null);
|
|
150
|
-
fuzz.group.async(io, fuzzWorkerRun, .{ fuzz, run, unit_test_name });
|
|
151
|
-
}
|
|
140
|
+
assert(run.rebuilt_executable != null);
|
|
141
|
+
fuzz.group.async(io, fuzzWorkerRun, .{ fuzz, run });
|
|
152
142
|
}
|
|
153
143
|
}
|
|
154
144
|
|
|
@@ -193,16 +183,13 @@ fn rebuildTestsWorkerRunFallible(run: *Step.Run, gpa: Allocator, parent_prog_nod
|
|
|
193
183
|
run.rebuilt_executable = try rebuilt_bin_path.join(gpa, compile.out_filename);
|
|
194
184
|
}
|
|
195
185
|
|
|
196
|
-
fn fuzzWorkerRun(fuzz: *Fuzz, run: *Step.Run
|
|
186
|
+
fn fuzzWorkerRun(fuzz: *Fuzz, run: *Step.Run) void {
|
|
197
187
|
const owner = run.step.owner;
|
|
198
188
|
const gpa = owner.allocator;
|
|
199
189
|
const graph = owner.graph;
|
|
200
190
|
const io = graph.io;
|
|
201
191
|
|
|
202
|
-
|
|
203
|
-
defer prog_node.end();
|
|
204
|
-
|
|
205
|
-
run.rerunInFuzzMode(fuzz, unit_test_name, prog_node) catch |err| switch (err) {
|
|
192
|
+
run.rerunInFuzzMode(fuzz, fuzz.prog_node) catch |err| switch (err) {
|
|
206
193
|
error.MakeFailed => {
|
|
207
194
|
var buf: [256]u8 = undefined;
|
|
208
195
|
const stderr = io.lockStderr(&buf, graph.stderr_mode) catch |e| switch (e) {
|
|
@@ -213,7 +200,7 @@ fn fuzzWorkerRun(fuzz: *Fuzz, run: *Step.Run, unit_test_name: []const u8) void {
|
|
|
213
200
|
return;
|
|
214
201
|
},
|
|
215
202
|
else => {
|
|
216
|
-
log.err("step '{s}': failed to rerun
|
|
203
|
+
log.err("step '{s}': failed to rerun in fuzz mode: {t}", .{ run.step.name, err });
|
|
217
204
|
return;
|
|
218
205
|
},
|
|
219
206
|
};
|