test sanitizers only on amd64
authorDmitry Shachnev <mitya57@debian.org>
Mon, 16 Aug 2021 12:21:16 +0000 (13:21 +0100)
committerDmitry Shachnev <mitya57@debian.org>
Mon, 16 Aug 2021 12:21:16 +0000 (13:21 +0100)
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 0aa7f3e879f136380e3b7cfbec9d8820dd05c25d..7dab71bd855ddfcc7c856da7ad13eb64601d8c7f 100644 (file)
@@ -19,7 +19,7 @@ CppApplication {
             // thread sanitizer is not supported
             return sanitizer !== "thread";
         }
-        return true;
+        return qbs.architecture === "x86_64";
     }
 
     condition: {