diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2017-07-25 19:47:35 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2017-07-31 17:04:17 +0200 |
commit | ed86958cf65226a246cf4b8532e5f5e904a4b05d (patch) | |
tree | e7b52c64e70fca42c8281ff6fca17074b3837529 /document/src/tests | |
parent | 76d9c00d726c3038e3ad1677619facb50336fb05 (diff) |
We are not java so we do not need these sanity checks. valgrind will do them just fine.
Remove the tests
Diffstat (limited to 'document/src/tests')
-rw-r--r-- | document/src/tests/arrayfieldvaluetest.cpp | 11 | ||||
-rw-r--r-- | document/src/tests/structfieldvaluetest.cpp | 9 |
2 files changed, 0 insertions, 20 deletions
diff --git a/document/src/tests/arrayfieldvaluetest.cpp b/document/src/tests/arrayfieldvaluetest.cpp index c9a35bacf1c..8e1cbfafb43 100644 --- a/document/src/tests/arrayfieldvaluetest.cpp +++ b/document/src/tests/arrayfieldvaluetest.cpp @@ -161,17 +161,6 @@ void ArrayFieldValueTest::testArray() // Failure situations. - // Refuse to accept non-array types - try{ - ArrayFieldValue value6(*DataType::TAG); - CPPUNIT_FAIL("Didn't complain about non-array type"); - } catch (std::exception& e) { - fprintf(stderr, "Exception = %s\n", e.what()); - CPPUNIT_ASSERT_CONTAIN( - "Cannot generate an array value with non-array type", - e.what()); - } - // Verify that datatypes are verified // Created almost equal types to try to get it to fail ArrayDataType type1(*DataType::INT); diff --git a/document/src/tests/structfieldvaluetest.cpp b/document/src/tests/structfieldvaluetest.cpp index 38e915ec82d..9fffe1d630f 100644 --- a/document/src/tests/structfieldvaluetest.cpp +++ b/document/src/tests/structfieldvaluetest.cpp @@ -193,15 +193,6 @@ void StructFieldValueTest::testStruct() // Failure situations. - // Refuse to accept non-struct types - try{ - StructFieldValue value6(*DataType::DOCUMENT); - CPPUNIT_FAIL("Didn't complain about non-struct type"); - } catch (std::exception& e) { - CPPUNIT_ASSERT_CONTAIN("Cannot generate a struct value with " - "non-struct type", e.what()); - } - // Refuse to set wrong types try{ value2.setValue(intF, StringFieldValue("bar")); |