Skip to content

Commit

Permalink
Fix shared_std_dependency_rebuild running on Windows (#15111)
Browse files Browse the repository at this point in the history
This fixes the `standard_lib::shared_std_dependency_rebuild` test while
running on Windows. On my system, `CARGO_MANIFEST_DIR` is a normal
windows-style path (`D:\rust\cargo`) with backslashes. That is not valid
TOML syntax. I don't know why this doesn't fail on CI (maybe CI sets a
unix-style current dir?).
  • Loading branch information
ehuss authored Jan 28, 2025
2 parents f62525d + caff80d commit f71f565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testsuite/standard_lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ fn shared_std_dependency_rebuild() {
[build-dependencies]
dep_test = {{ path = \"{}/tests/testsuite/mock-std/dep_test\" }}
",
manifest_dir
manifest_dir.replace('\\', "/")
)
.as_str(),
)
Expand Down

0 comments on commit f71f565

Please sign in to comment.