Skip to content

Commit

Permalink
fuzz: fix debug fuzzing issues (#1869)
Browse files Browse the repository at this point in the history
* fuzz: allow debug-printing components

Without this feature, the fuzzer fails when running with logging
enabled:

```
RUST_LOG=debug cargo +nightly fuzz run run
```

Turning on `RUST_LOG=debug` prints the generated test cases to files and
certain fuzz targets (e.g., `wit64`) need to print components.

* fuzz: ignore test configurations

When running fuzzing with `RUST_LOG=debug`, the fuzz targets print
configurations with the form `test*.config`, not `test.config`.
  • Loading branch information
abrown authored Oct 16, 2024
1 parent 83482d0 commit 1a8a0c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ publish
# Generated by some fuzz targets.
*.wasm
*.wat
test.config
test*.config

.DS_Store
.idea
.vscode
.vscode
2 changes: 1 addition & 1 deletion fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ tempfile = "3.0"
wasm-mutate = { workspace = true }
wasm-smith = { workspace = true, features = ['component-model', 'wasmparser'] }
wasmparser = { workspace = true, features = ['features'] }
wasmprinter = { workspace = true }
wasmprinter = { workspace = true, features = ['component-model'] }
wasmtime = { workspace = true, optional = true }
wast = { workspace = true }
wat = { workspace = true }
Expand Down

0 comments on commit 1a8a0c5

Please sign in to comment.