diff options
author | Sean Harmer <sean.harmer@kdab.com> | 2017-08-25 10:01:20 +0100 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2017-08-25 09:07:55 +0000 |
commit | 5c99313eedada4e502b57798122ab20d71eca0fe (patch) | |
tree | 50dfcb23ba3cd376afcb34cae016f8b150f8a384 | |
parent | a340ae601a0c2688826c1b91533e19f00eda46d1 (diff) |
Remove alignment tests that should not be present yet
When splitting the SIMD series, commits
0f1586e66d21af972caf353ad90f29b43721921b and
e881d3ca08da399640ca310ec9f8e1c71aefe352 accidentally included tests
for memory alignment before the custom operator new functions were
added that ensure alignment. This obviously fails sometimes when the
default operator new happens to not align the memory as the test
expects, leading to crashes.
This commit removes the tests. They will be readded along with the
commit that introduces the custom operator new for the SIMD enabled
types.
Task-number: QTBUG-62781
Change-Id: I30cd88019cd7aef96b022530b81c3b46cd249207
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
-rw-r--r-- | tests/auto/core/vector3d_sse/tst_vector3d_sse.cpp | 16 | ||||
-rw-r--r-- | tests/auto/core/vector4d_sse/tst_vector4d_sse.cpp | 15 |
2 files changed, 0 insertions, 31 deletions
diff --git a/tests/auto/core/vector3d_sse/tst_vector3d_sse.cpp b/tests/auto/core/vector3d_sse/tst_vector3d_sse.cpp index 8e6be5b3f..be9fbc347 100644 --- a/tests/auto/core/vector3d_sse/tst_vector3d_sse.cpp +++ b/tests/auto/core/vector3d_sse/tst_vector3d_sse.cpp @@ -35,22 +35,6 @@ class tst_Vector3D_SSE: public QObject { Q_OBJECT private Q_SLOTS: - - void checkAllocationAndAlignment() - { - // GIVEN - Vector3D_SSE *m = new Vector3D_SSE(); - - // THEN - QVERIFY((uintptr_t)m % 16 == 0); - - // WHEN - delete m; - - // THEN - // Should not crash - } - void defaultConstruction() { // GIVEN diff --git a/tests/auto/core/vector4d_sse/tst_vector4d_sse.cpp b/tests/auto/core/vector4d_sse/tst_vector4d_sse.cpp index b57d52b86..e7b58c8cf 100644 --- a/tests/auto/core/vector4d_sse/tst_vector4d_sse.cpp +++ b/tests/auto/core/vector4d_sse/tst_vector4d_sse.cpp @@ -36,21 +36,6 @@ class tst_Vector4D_SSE: public QObject { Q_OBJECT private Q_SLOTS: - void checkAllocationAndAlignment() - { - // GIVEN - Vector4D_SSE *m = new Vector4D_SSE(); - - // THEN - QVERIFY((uintptr_t)m % 16 == 0); - - // WHEN - delete m; - - // THEN - // Should not crash - } - void defaultConstruction() { // GIVEN |