windows: Fix tests on Windows (#22616)

Release Notes:

- N/A

---------

Co-authored-by: Mikayla <mikayla.c.maki@gmail.com>
This commit is contained in:
张小白 2025-02-05 22:30:09 +08:00 committed by GitHub
parent c252b5db16
commit 74c4dbd237
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
56 changed files with 1540 additions and 856 deletions

View file

@ -13,7 +13,7 @@ path = "src/util.rs"
doctest = true
[features]
test-support = ["tempfile", "git2", "rand"]
test-support = ["tempfile", "git2", "rand", "util_macros"]
[dependencies]
anyhow.workspace = true
@ -35,6 +35,7 @@ smol.workspace = true
take-until.workspace = true
tempfile = { workspace = true, optional = true }
unicase.workspace = true
util_macros = { workspace = true, optional = true }
[target.'cfg(unix)'.dependencies]
libc.workspace = true
@ -47,3 +48,4 @@ dunce = "1.0"
git2.workspace = true
rand.workspace = true
tempfile.workspace = true
util_macros.workspace = true