test sanitizers only on amd64
authorDmitry Shachnev <mitya57@debian.org>
Sun, 30 Mar 2025 06:23:58 +0000 (08:23 +0200)
committerPino Toscano <pino@debian.org>
Sun, 30 Mar 2025 06:23:58 +0000 (08:23 +0200)
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 24a6f909aad94f13ad3f5b3af982e31b0e5f1ce0..28cb3f31600ee0d59d74cf010f162bcd0f3d3c74 100644 (file)
@@ -6,8 +6,6 @@ CppApplication {
     property bool supportsSanitizer: {
         if (qbs.toolchain.includes("mingw") || qbs.toolchain.contains("emscripten"))
             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: {