diff options
Diffstat (limited to 'tools/qa')
3 files changed, 16 insertions, 16 deletions
diff --git a/tools/qa/cppunit/test_cpu_runtime_detection_AVX2_check.cxx b/tools/qa/cppunit/test_cpu_runtime_detection_AVX2_check.cxx index b5948223752c..39c18e5314e0 100644 --- a/tools/qa/cppunit/test_cpu_runtime_detection_AVX2_check.cxx +++ b/tools/qa/cppunit/test_cpu_runtime_detection_AVX2_check.cxx @@ -10,17 +10,17 @@ #include <sal/types.h> #include <tools/simdsupport.hxx> -#include <cppunit/TestAssert.h> -#include <cppunit/TestFixture.h> -#include <cppunit/extensions/HelperMacros.h> -#include <cppunit/plugin/TestPlugIn.h> +#include <stdlib.h> #include "test_cpu_runtime_detection_x86_checks.hxx" /* WARNING: This file is compiled with AVX2 support, don't call * any function without checking cpuid to check the CPU can actually - * handle it. + * handle it, and don't include any headers that contain templates + * or inline functions, which includes cppunit. */ +#define CPPUNIT_ASSERT_EQUAL(a, b) ((a) == (b) ? (void)0 : abort()) + void CpuRuntimeDetectionX86Checks::checkAVX2() { #ifdef LO_AVX2_AVAILABLE diff --git a/tools/qa/cppunit/test_cpu_runtime_detection_SSE2_check.cxx b/tools/qa/cppunit/test_cpu_runtime_detection_SSE2_check.cxx index 14bcc78717d8..4b706cd5c1de 100644 --- a/tools/qa/cppunit/test_cpu_runtime_detection_SSE2_check.cxx +++ b/tools/qa/cppunit/test_cpu_runtime_detection_SSE2_check.cxx @@ -10,15 +10,16 @@ #include <sal/types.h> #include <tools/simdsupport.hxx> -#include <cppunit/TestAssert.h> -#include <cppunit/TestFixture.h> -#include <cppunit/extensions/HelperMacros.h> -#include <cppunit/plugin/TestPlugIn.h> - -#include <tools/cpuid.hxx> +#include <stdlib.h> #include "test_cpu_runtime_detection_x86_checks.hxx" +/* WARNING: This file is compiled with SSE2 support, don't call + * any function without checking cpuid to check the CPU can actually + * handle it, and don't include any headers that contain templates + * or inline functions, which includes cppunit. + */ +#define CPPUNIT_ASSERT_EQUAL(a, b) ((a) == (b) ? (void)0 : abort()) void CpuRuntimeDetectionX86Checks::checkSSE2() { #ifdef LO_SSE2_AVAILABLE diff --git a/tools/qa/cppunit/test_cpu_runtime_detection_SSSE3_check.cxx b/tools/qa/cppunit/test_cpu_runtime_detection_SSSE3_check.cxx index 5fd46e62c185..5e7c0b3e2a75 100644 --- a/tools/qa/cppunit/test_cpu_runtime_detection_SSSE3_check.cxx +++ b/tools/qa/cppunit/test_cpu_runtime_detection_SSSE3_check.cxx @@ -10,17 +10,16 @@ #include <sal/types.h> #include <tools/simdsupport.hxx> -#include <cppunit/TestAssert.h> -#include <cppunit/TestFixture.h> -#include <cppunit/extensions/HelperMacros.h> -#include <cppunit/plugin/TestPlugIn.h> +#include <stdlib.h> #include "test_cpu_runtime_detection_x86_checks.hxx" /* WARNING: This file is compiled with SSSE3 support, don't call * any function without checking cpuid to check the CPU can actually - * handle it. + * handle it, and don't include any headers that contain templates + * or inline functions, which includes cppunit. */ +#define CPPUNIT_ASSERT_EQUAL(a, b) ((a) == (b) ? (void)0 : abort()) void CpuRuntimeDetectionX86Checks::checkSSSE3() { #ifdef LO_SSSE3_AVAILABLE |