Skip to content

Commit

Permalink
Fix unescaped path in toml
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-karpenko committed Nov 25, 2024
1 parent 0be02e5 commit f387980
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,12 +269,13 @@ fn additional_cargo_test_args() {
fn output_option_use_config() {
let output_tmpdir = TempDir::new().unwrap();
let output_via_config = output_tmpdir.path().join("output_via_config");

let testdata = copy_of_testdata("factorial");
write_config_file(
&testdata,
&format!("output = \"{}\"\n", output_via_config.display()),
);

let out_path_str = output_via_config
.to_string_lossy()
.escape_default()
.to_string();
write_config_file(&testdata, &format!("output = \"{out_path_str}\""));

assert!(
!testdata.path().join("mutants.out").exists(),
Expand Down

0 comments on commit f387980

Please sign in to comment.