diff --git a/crates/nu-path/fuzz/README.md b/crates/nu-path/fuzz/README.md index ab16045b3e..c2a01ccb45 100644 --- a/crates/nu-path/fuzz/README.md +++ b/crates/nu-path/fuzz/README.md @@ -5,4 +5,4 @@ # Quick start guide - Install cargo-fuzz by `cargo install cargo-fuzz` - Make output directory `mkdir out` -- Run the fuzzer with `cargo fuzz run parse out` +- Run the fuzzer with `cargo fuzz run path out` diff --git a/crates/nu-path/fuzz/fuzz_targets/path_fuzzer.rs b/crates/nu-path/fuzz/fuzz_targets/path_fuzzer.rs index 1a265cc44d..cc03144922 100644 --- a/crates/nu-path/fuzz/fuzz_targets/path_fuzzer.rs +++ b/crates/nu-path/fuzz/fuzz_targets/path_fuzzer.rs @@ -17,6 +17,6 @@ fuzz_target!(|data: &[u8]| { // Here, we're assuming a second path for the "relative to" aspect. // For simplicity, we're just using the current directory. let current_dir = std::path::Path::new("."); - let _ = expand_path_with(path, ¤t_dir); + let _ = expand_path_with(path, ¤t_dir, true); } });