summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Krause <[email protected]>2015-08-14 09:00:24 +0200
committerVolker Krause <[email protected]>2015-08-14 09:00:24 +0200
commit2d7f1bd061584a3df8ac0b7b1def8f9f8d111330 (patch)
tree519dc0cf74b60124ea675a9350ad98f228fb6224
parent9ea9e056ccd93843ab5174aae45a3d1f7e461227 (diff)
Try to fix hash stability issue in the unit test.
The hash implementation for QString differs depending on whether SSE 4.2 is available or not, so disable that everywhere.
-rw-r--r--akonadi/src/xml/autotests/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/akonadi/src/xml/autotests/CMakeLists.txt b/akonadi/src/xml/autotests/CMakeLists.txt
index 783df99..8dc987e 100644
--- a/akonadi/src/xml/autotests/CMakeLists.txt
+++ b/akonadi/src/xml/autotests/CMakeLists.txt
@@ -9,7 +9,7 @@ macro(add_libakonadixml_test _source)
add_executable( ${_name} ${_test} )
add_test( ${_name} ${_name} )
ecm_mark_as_test(akonadixml-${_name})
- set_tests_properties(${_name} PROPERTIES ENVIRONMENT "QT_HASH_SEED=1")
+ set_tests_properties(${_name} PROPERTIES ENVIRONMENT "QT_HASH_SEED=1;QT_NO_CPU_FEATURE=sse4.2")
set_target_properties(${_name} PROPERTIES COMPILE_FLAGS -DKDESRCDIR="\\"${CMAKE_CURRENT_SOURCE_DIR}/\\"")
target_link_libraries(${_name} KF5AkonadiCore KF5::AkonadiXml Qt5::Test Qt5::Xml)
endmacro()