File: disable-bootstrap-tests-that-don-t-work-from-tarball-sour.patch

package info (click to toggle)
rustc 1.91.1%2Bdfsg1-1~exp2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 943,828 kB
  • sloc: xml: 158,148; javascript: 23,353; sh: 19,314; python: 15,711; ansic: 13,112; cpp: 7,371; asm: 4,376; makefile: 720; lisp: 176; sql: 15
file content (66 lines) | stat: -rw-r--r-- 2,119 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
From: =?utf-8?q?Fabian_Gr=C3=BCnbichler?= <f.gruenbichler@proxmox.com>
Date: Thu, 25 Sep 2025 09:32:47 +0200
Subject: disable bootstrap tests that don't work from tarball sources
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

Forwarded: not-needed

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
---
 src/bootstrap/src/core/builder/tests.rs | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/src/bootstrap/src/core/builder/tests.rs b/src/bootstrap/src/core/builder/tests.rs
index 2d568f8..8a2824b 100644
--- a/src/bootstrap/src/core/builder/tests.rs
+++ b/src/bootstrap/src/core/builder/tests.rs
@@ -168,7 +168,8 @@ fn check_missing_paths_for_x_test_tests() {
     }
 }
 
-#[test]
+//Debian: doesn't work in a tarball source
+#[allow(dead_code)]
 fn ci_rustc_if_unchanged_invalidate_on_compiler_changes() {
     git_test(|ctx| {
         prepare_rustc_checkout(ctx);
@@ -181,7 +182,8 @@ fn ci_rustc_if_unchanged_invalidate_on_compiler_changes() {
     });
 }
 
-#[test]
+//Debian: doesn't work in a tarball source
+#[allow(dead_code)]
 fn ci_rustc_if_unchanged_do_not_invalidate_on_library_changes_outside_ci() {
     git_test(|ctx| {
         prepare_rustc_checkout(ctx);
@@ -194,7 +196,8 @@ fn ci_rustc_if_unchanged_do_not_invalidate_on_library_changes_outside_ci() {
     });
 }
 
-#[test]
+//Debian: doesn't work in a tarball source
+#[allow(dead_code)]
 fn ci_rustc_if_unchanged_do_not_invalidate_on_tool_changes() {
     git_test(|ctx| {
         prepare_rustc_checkout(ctx);
@@ -1533,7 +1536,7 @@ mod snapshot {
         ");
     }
 
-    #[test]
+    #[allow(dead_code)]
     fn dist_all_cross_extended() {
         let ctx = TestCtx::new();
         insta::assert_snapshot!(
@@ -1614,7 +1617,7 @@ mod snapshot {
     ///
     /// This is a regression test for <https://github.com/rust-lang/rust/issues/138123>
     /// and <https://github.com/rust-lang/rust/issues/138004>.
-    #[test]
+    #[allow(dead_code)]
     fn dist_all_cross_extended_no_docs() {
         let ctx = TestCtx::new();
         let steps = ctx