addr2line - fix autopkgtest.
Peter Michael Green
1 year, 8 months ago
1 | 1 |
|
2 | 2 |
* Team upload.
|
3 | 3 |
* Package addr2line 0.18.0 from crates.io using debcargo 2.5.0
|
|
4 |
* Remove dev-dependency on rustc-test and disable test that depends on is so
|
|
5 |
the rest of the tests can run.
|
|
6 |
* Disable test that depends on a private subcrate, private subcrates
|
|
7 |
don't work in a crates.io or debcargo environment.
|
|
8 |
* Disable test that fails with missing test data.
|
|
9 |
* Mark example as needing "default" feature enabled.
|
4 | 10 |
|
5 | |
-- Peter Michael Green <plugwash@debian.org> Sat, 20 Aug 2022 23:17:02 +0000
|
|
11 |
-- Peter Michael Green <plugwash@debian.org> Sun, 21 Aug 2022 02:44:54 +0000
|
6 | 12 |
|
7 | 13 |
rust-addr2line (0.13.0-1) experimental; urgency=medium
|
8 | 14 |
|
|
0 |
Index: addr2line/tests/correctness.rs
|
|
1 |
===================================================================
|
|
2 |
--- addr2line.orig/tests/correctness.rs
|
|
3 |
+++ addr2line/tests/correctness.rs
|
|
4 |
@@ -68,7 +68,7 @@ fn correctness() {
|
|
5 |
small::test_function as u64,
|
|
6 |
"correctness::small::test_function",
|
|
7 |
);
|
|
8 |
- test(auxiliary::foo as u64, "auxiliary::foo");
|
|
9 |
+ //test(auxiliary::foo as u64, "auxiliary::foo");
|
|
10 |
}
|
|
11 |
|
|
12 |
mod small {
|
|
0 |
Index: addr2line/Cargo.toml
|
|
1 |
===================================================================
|
|
2 |
--- addr2line.orig/Cargo.toml
|
|
3 |
+++ addr2line/Cargo.toml
|
|
4 |
@@ -55,11 +55,6 @@ required-features = ["std-object"]
|
|
5 |
name = "correctness"
|
|
6 |
required-features = ["default"]
|
|
7 |
|
|
8 |
-[[test]]
|
|
9 |
-name = "parse"
|
|
10 |
-required-features = ["std-object"]
|
|
11 |
-
|
|
12 |
-
|
|
13 |
[dependencies.cpp_demangle]
|
|
14 |
version = "0.3"
|
|
15 |
optional = true
|
|
16 |
Index: addr2line/tests/parse.rs
|
|
17 |
===================================================================
|
|
18 |
--- addr2line.orig/tests/parse.rs
|
|
19 |
+++ addr2line/tests/parse.rs
|
|
20 |
@@ -24,7 +24,7 @@ fn release_fixture_path() -> PathBuf {
|
|
21 |
}
|
|
22 |
|
|
23 |
fn with_file<F: FnOnce(&object::File)>(target: &path::Path, f: F) {
|
|
24 |
- let file = File::open(target).unwrap();
|
|
25 |
+ let file = File::open(target).expect(&format!("could not open file {}",target.display()));
|
|
26 |
let map = unsafe { memmap2::Mmap::map(&file).unwrap() };
|
|
27 |
let file = object::File::parse(&*map).unwrap();
|
|
28 |
f(&file)
|
|
0 |
Index: addr2line/Cargo.toml
|
|
1 |
===================================================================
|
|
2 |
--- addr2line.orig/Cargo.toml
|
|
3 |
+++ addr2line/Cargo.toml
|
|
4 |
@@ -49,7 +49,7 @@ split-debuginfo = "packed"
|
|
5 |
|
|
6 |
[[example]]
|
|
7 |
name = "addr2line"
|
|
8 |
-required-features = ["std-object"]
|
|
9 |
+required-features = ["default"]
|
|
10 |
|
|
11 |
[[test]]
|
|
12 |
name = "correctness"
|
|
0 |
Index: addr2line/Cargo.toml
|
|
1 |
===================================================================
|
|
2 |
--- addr2line.orig/Cargo.toml
|
|
3 |
+++ addr2line/Cargo.toml
|
|
4 |
@@ -30,6 +30,7 @@ keywords = [
|
|
5 |
categories = ["development-tools::debugging"]
|
|
6 |
license = "Apache-2.0 OR MIT"
|
|
7 |
repository = "https://github.com/gimli-rs/addr2line"
|
|
8 |
+autotests = false
|
|
9 |
|
|
10 |
[profile.bench]
|
|
11 |
codegen-units = 1
|
|
12 |
@@ -51,11 +52,6 @@ name = "addr2line"
|
|
13 |
required-features = ["std-object"]
|
|
14 |
|
|
15 |
[[test]]
|
|
16 |
-name = "output_equivalence"
|
|
17 |
-harness = false
|
|
18 |
-required-features = ["std-object"]
|
|
19 |
-
|
|
20 |
-[[test]]
|
|
21 |
name = "correctness"
|
|
22 |
required-features = ["default"]
|
|
23 |
|
|
24 |
@@ -104,9 +100,6 @@ version = "0.10"
|
|
25 |
[dev-dependencies.memmap2]
|
|
26 |
version = "0.5.5"
|
|
27 |
|
|
28 |
-[dev-dependencies.rustc-test]
|
|
29 |
-version = "0.3"
|
|
30 |
-
|
|
31 |
[dev-dependencies.typed-arena]
|
|
32 |
version = "2"
|
|
33 |
|
0 | 0 |
remove-rustc-dep-of-std.diff
|
1 | 1 |
smallvec-non-optional.diff
|
2 | 2 |
fallible-iterator-non-optional.diff
|
|
3 |
remove-rustc-test.diff
|
|
4 |
disable-test-private-crate.diff
|
|
5 |
disable-tests-missing-testdata.patch
|
|
6 |
mark-example-as-needing-default-feature.diff
|