diff options
author | Ivan Komissarov <abbapoh@gmail.com> | 2020-08-30 18:47:10 +0200 |
---|---|---|
committer | Ivan Komissarov <ABBAPOH@gmail.com> | 2020-08-31 09:36:11 +0000 |
commit | b60f3409bbd6317de5f889d49055bee70648931b (patch) | |
tree | f07e578745e437849a62ff2927046452901f8076 /tests/auto/blackbox/testdata/sanitizer | |
parent | c7587b6f1efeda2fa841a5b70210df0ced1fedf4 (diff) |
Skip sanitizer test when run using VS clang for x86_64
32-bit clang doesn't support building 64-bit sanitized apps and the one
shipped with VS is 32-bit
Change-Id: I6b8b75ebe00ea7786be649128ea10a0789e207a0
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'tests/auto/blackbox/testdata/sanitizer')
-rw-r--r-- | tests/auto/blackbox/testdata/sanitizer/sanitizer.qbs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/auto/blackbox/testdata/sanitizer/sanitizer.qbs b/tests/auto/blackbox/testdata/sanitizer/sanitizer.qbs index e5db199dc..0aa7f3e87 100644 --- a/tests/auto/blackbox/testdata/sanitizer/sanitizer.qbs +++ b/tests/auto/blackbox/testdata/sanitizer/sanitizer.qbs @@ -2,9 +2,15 @@ CppApplication { property string sanitizer property bool supportsSanitizer: { - if (qbs.toolchain.contains("clang-cl")) + if (qbs.toolchain.contains("clang-cl")) { + if (cpp.toolchainInstallPath.contains("Microsoft Visual Studio") + && qbs.architecture === "x86_64") { + // 32 bit sanitizer shipped with VS misses the x86_64 libraries + return false; + } // only these are supported return sanitizer === "address" || sanitizer === "undefined"; + } if (!qbs.toolchain.contains("gcc")) return false; if (qbs.toolchain.contains("mingw")) |