test sanitizers only on amd64
authorDmitry Shachnev <mitya57@debian.org>
Wed, 30 Nov 2022 14:13:12 +0000 (14:13 +0000)
committerDmitry Shachnev <mitya57@debian.org>
Wed, 30 Nov 2022 14:13:12 +0000 (14:13 +0000)
Forwarded: not-needed
Last-Update: 2020-05-21

In Debian, sanitizers are available not on all architectures.
For example, libtsan0 is available only on (amd64, arm64, ppc64, ppc64el).

Gbp-Pq: Name test_sanitizers_only_on_amd64.diff

tests/auto/blackbox/testdata/sanitizer/sanitizer.qbs

index 9126a7913d4f980059372871845787e27623c87e..02d27595af758a01f2e6fd7be14f22c8825139c5 100644 (file)
@@ -23,7 +23,7 @@ CppApplication {
             // thread sanitizer is not supported
             return sanitizer !== "thread";
         }
-        return true;
+        return qbs.architecture === "x86_64";
     }
 
     condition: {