Ignore more spurious test failures, and filed upstream

This commit is contained in:
Ximin Luo 2021-10-09 00:22:47 +01:00
parent 439125a907
commit f9fab79c2d
5 changed files with 27 additions and 3 deletions

3
debian/changelog vendored
View File

@ -1,8 +1,9 @@
rustc (1.54.0+dfsg1-2) UNRELEASED; urgency=medium
rustc (1.54.0+dfsg1-1) UNRELEASED; urgency=medium
* Upload to unstable.
* Re-enable backported patch for armhf & reset its allowed-failures.
* Add compatibility patch for cargo 0.47.
* Ignore more spurious test failures, and filed upstream.
-- Ximin Luo <infinity0@debian.org> Fri, 08 Oct 2021 14:31:10 +0100

View File

@ -1,6 +1,6 @@
--- a/src/bootstrap/lib.rs
+++ b/src/bootstrap/lib.rs
@@ -819,10 +819,9 @@
@@ -824,10 +824,9 @@
match which {
GitRepo::Rustc => {
@ -13,3 +13,14 @@
}
}
--- a/src/test/codegen/remap_path_prefix/issue-73167-remap-std.rs
+++ b/src/test/codegen/remap_path_prefix/issue-73167-remap-std.rs
@@ -7,7 +7,7 @@
// true automatically. If paths to std library hasn't been remapped, we use the
// above simulate-remapped-rust-src-base option to do it temporarily
-// CHECK: !DIFile(filename: "{{/rustc/.*/library/std/src/panic.rs}}"
+// CHECK: !DIFile(filename: "{{/usr/src/rustc-.*/library/std/src/panic.rs}}"
fn main() {
std::thread::spawn(|| {
println!("hello");

View File

@ -12,6 +12,7 @@ u-ignore-endian-big-diff.patch
# not forwarded, or forwarded but unlikely to be merged
u-ignore-ppc-hangs.patch
u-ignore-bpf-test.patch
u-rustc-llvm-cross-flags.patch
u-reproducible-dl-stage0.patch
u-make-tests-work-without-rpath.patch

View File

@ -0,0 +1,9 @@
Bug: https://github.com/rust-lang/rust/issues/89689
--- a/src/test/assembly/asm/bpf-types.rs
+++ b/src/test/assembly/asm/bpf-types.rs
@@ -1,3 +1,4 @@
+// ignore-test
// min-llvm-version: 10.0.1
// assembly-output: emit-asm
// compile-flags: --target bpfel-unknown-none -C target_feature=+alu32

4
debian/rules vendored
View File

@ -41,7 +41,9 @@ NJOBS := -j $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
endif
RUSTBUILD = RUST_BACKTRACE=1 python3 src/bootstrap/bootstrap.py $(NJOBS)
RUSTBUILD_FLAGS = --stage 2 --config debian/config.toml -vvv --on-fail env
RUSTBUILD_TEST = $(RUSTBUILD) test --no-fail-fast
# rust-tidy depends on lots of modules that we strip out of the build.
# it also tries to access the network for some reason. so just disable it.
RUSTBUILD_TEST = $(RUSTBUILD) test --no-fail-fast --exclude src/tools/tidy
# To run a specific test, run something like:
# $ debian/rules override_dh_auto_test-arch \
# RUSTBUILD_TEST_FLAGS="src/test/run-make --test-args extern-fn-struct"