File: skip-tests-on-big-endian.patch

package info (click to toggle)
rust-capstone 0.11.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 684 kB
  • sloc: sh: 306; ansic: 6; makefile: 2
file content (30 lines) | stat: -rw-r--r-- 992 bytes parent folder | download
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
Skip test_arch_m68k_detail and test_arch_tms320c64x_detail on big endian
systems.

 * Failures reported upstream test_arch_tms320c64x_detail
 * Not a regression compared to the situation in testing at the time of
   writing the patch.
 * Failures were causing problems for testing migration of libc crate
   due to the fact that the tests were skipped in plain testing tests
   but run for unstable -> testing migration tests.

Index: rust-capstone-0.11.0/src/test.rs
===================================================================
--- rust-capstone-0.11.0.orig/src/test.rs
+++ rust-capstone-0.11.0/src/test.rs
@@ -1757,6 +1757,7 @@ fn test_arch_m680x_detail() {
     );
 }
 
+#[cfg(target_endian = "little")]
 #[test]
 fn test_arch_m68k_detail() {
     use crate::arch::m68k::M68kOperand::*;
@@ -2458,6 +2459,7 @@ fn test_arch_systemz() {
     );
 }
 
+#[cfg(target_endian = "little")]
 #[test]
 fn test_arch_tms320c64x_detail() {
     use crate::arch::tms320c64x::Tms320c64xOperand::*;