File: 0002-abi-cafe-Disable-broken-tests.patch

package info (click to toggle)
rustc 1.86.0%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, sid
  • size: 913,560 kB
  • sloc: xml: 158,127; python: 35,921; javascript: 19,689; sh: 19,600; cpp: 18,906; ansic: 13,124; asm: 4,376; makefile: 708; perl: 29; lisp: 29; ruby: 19; sql: 11
file content (69 lines) | stat: -rw-r--r-- 2,479 bytes parent folder | download | duplicates (4)
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
67
68
69
From 236df390f3bc4ed69c26f4d51d584bea246da886 Mon Sep 17 00:00:00 2001
From: bjorn3 <17426603+bjorn3@users.noreply.github.com>
Date: Tue, 9 Jul 2024 11:25:14 +0000
Subject: [PATCH] Disable broken tests

---
 src/report.rs | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/src/toolchains/rust.rs b/src/toolchains/rust.rs
index 0c50f7a..bfde2b1 100644
--- a/src/toolchains/rust.rs
+++ b/src/toolchains/rust.rs
@@ -83,6 +83,7 @@ impl Toolchain for RustcToolchain {
             .arg(out_dir)
             .arg("--target")
             .arg(built_info::TARGET)
+            .arg("-g")
             .arg(format!("-Cmetadata={lib_name}"))
             .arg(src_path);
         if let Some(codegen_backend) = &self.codegen_backend {
diff --git a/src/report.rs b/src/report.rs
index 958ab43..dcf1044 100644
--- a/src/report.rs
+++ b/src/report.rs
@@ -48,6 +48,40 @@ pub fn get_test_rules(test: &TestKey, caller: &dyn Toolchain, callee: &dyn Toolc
     //
     // THIS AREA RESERVED FOR VENDORS TO APPLY PATCHES
 
+    if cfg!(all(target_arch = "aarch64", target_os = "linux")) {
+        if test.test == "F32Array" && test.options.convention == CallingConvention::C {
+            result.check = Busted(Check);
+        }
+    }
+
+    if cfg!(all(target_arch = "aarch64", target_os = "macos")) {
+        if test.test == "SingleVariantUnion" && test.options.convention == CallingConvention::C && test.options.repr == LangRepr::C {
+            result.check = Busted(Check);
+        }
+
+        if test.test == "OptionU128" && test.caller == "rustc" && test.options.convention == CallingConvention::Rust && test.options.repr == LangRepr::C {
+            result.check = Busted(Run);
+        }
+
+        if test.test == "OptionU128" && test.caller == "cgclif" && test.options.convention == CallingConvention::Rust && test.options.repr == LangRepr::C {
+            result.check = Busted(Check);
+        }
+    }
+
+    if cfg!(all(target_arch = "x86_64", windows)) {
+        if test.test == "simple" && test.options.convention == CallingConvention::Rust {
+            result.check = Busted(Check);
+        }
+
+        if test.test == "simple" && test.options.convention == CallingConvention::Rust && test.caller == "rustc" {
+            result.check = Busted(Run);
+        }
+    }
+
+    if test.test == "f16" || test.test == "f128" {
+        result.run = Skip;
+    }
+
     // END OF VENDOR RESERVED AREA
     //
     //
-- 
2.34.1