Debian Codegraph @

debian/patches/1001_broken_test.patch

raw
1 Description: fix broken tests
2 Author: Jonas Smedegaard <[email protected]>
3 Last-Update: 2026-04-06
4 ---
5 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
6 --- a/crates/wit-parser/src/resolve.rs
7 +++ b/crates/wit-parser/src/resolve.rs
8 @@ -4220,8 +4220,6 @@
9 /// pick a world just based on it being the only one that matches.
10 #[test]
11 fn select_world_multiple_packages() -> Result<()> {
12 - use wit_parser::Resolve;
13 -
14 let mut resolve = Resolve::default();
15
16 // Just one world in one package; we always succeed.
17 @@ -4257,8 +4255,6 @@
18 /// Test selecting a world with multiple versions of a package name.
19 #[test]
20 fn select_world_versions() -> Result<()> {
21 - use wit_parser::Resolve;
22 -
23 let mut resolve = Resolve::default();
24
25 let _id = resolve.push_str(
26 @@ -4348,8 +4344,6 @@
27 /// Test overriding a main package using name qualification
28 #[test]
29 fn select_world_override_qualification() -> Result<()> {
30 - use wit_parser::Resolve;
31 -
32 let mut resolve = Resolve::default();
33
34 let other = resolve.push_str(
35 @@ -4399,8 +4393,6 @@
36 /// Test selecting with fully-qualified world names.
37 #[test]
38 fn select_world_fully_qualified() -> Result<()> {
39 - use wit_parser::Resolve;
40 -
41 let mut resolve = Resolve::default();
42
43 let distraction = resolve.push_str(
44 @@ -4454,8 +4446,6 @@
45 /// Test `select_world` with single and multiple packages.
46 #[test]
47 fn select_world_packages() -> Result<()> {
48 - use wit_parser::Resolve;
49 -
50 let mut resolve = Resolve::default();
51
52 // If there's a single package and only one world, that world is
53 --- a/Cargo.toml
54 +++ b/Cargo.toml
55 @@ -241,6 +241,7 @@
56 [[test]]
57 name = "cli"
58 harness = false
59 +required-features = ["broken"]
60
61 [features]
62 # By default, all subcommands are built