I’ve written the following. Just wondering if that’s the right way or can i exclude fuzz? Surely not right?
if (builtin.is_test or builtin.fuzz or builtin.mode == .Debug)
@memset(c.get_blocks(r), @splat(0xFF));
I’ve written the following. Just wondering if that’s the right way or can i exclude fuzz? Surely not right?
if (builtin.is_test or builtin.fuzz or builtin.mode == .Debug)
@memset(c.get_blocks(r), @splat(0xFF));
afaik, yes! fuzzer is implemented as a dynamic library that is linked to the test runner which exports a fuzz runner api.
I think you could get fuzzing outside zigs test system, but that would be sketchy and rarely ever needed. You’d probably opt for a custom test runner first.
Thanks. Makes sense and good to know.
I did try using testing.Smith with AFL and not inside of a test block. But the compiler didn’t allow it. So I created a custom, similar AflSmith.