test sanitizers only on amd64
authorDmitry Shachnev <mitya57@debian.org>
Wed, 15 May 2024 08:09:39 +0000 (11:09 +0300)
committerDmitry Shachnev <mitya57@debian.org>
Wed, 15 May 2024 08:09:39 +0000 (11:09 +0300)
Forwarded: not-needed
Last-Update: 2023-08-09

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 438f3cc39aebf6812ad7007ec139d519bf230310..2ee15980d1d1062b9088d3e52c1a1d968a72bc2d 100644 (file)
@@ -6,8 +6,6 @@ CppApplication {
     property bool supportsSanitizer: {
         if (qbs.toolchain.includes("mingw"))
             return false;
-        if (sanitizer === "address")
-            return Sanitizers.address._supported;
         if (qbs.toolchain.includes("clang-cl")) {
             if (cpp.toolchainInstallPath.includes("Microsoft Visual Studio")
                     && qbs.architecture === "x86_64") {
@@ -23,7 +21,7 @@ CppApplication {
             // thread sanitizer is not supported
             return sanitizer !== "thread";
         }
-        return true;
+        return qbs.architecture === "x86_64";
     }
 
     condition: {