Description
#1245
@basvodde Hello. I made this functionality optional, added a custom list instead of the stl::list and added tests, but I have a small problem. The library is built from source, installs and works well. But when checking the tests, I get this output:
ps almost all build tasks for Windows fail in appveyor and all build tasks fail in Travis-ci
If you have free time, can you tell me what I'm doing wrong?
regards max
CppUTestTests OUTPUT:
home/max/project/max/cpputest/src/CppUTest/SimpleStringInternalCache.cpp:158
WARNING: Attempting to deallocate a String buffer that was allocated while not caching. Ignoring it!
This is likely due statics and will cause problems.
Only warning once to avoid recursive warnings.
String we are deallocating: "10"
/home/max/project/max/cpputest/tests/CppUTest/JUnitOutputTest.cpp:750: error: Failure in TEST(JUnitOutputTest, UTPRINTOutputInJUnitOutputWithSpecials)
UTPRINTOutputInJUnitOutputWithSpecials:750: error:
Deallocating non-allocated memory
allocated at file: line: 0 size: 0 type: unknown
deallocated at file: line: 0 type: delete
.
/home/max/project/max/cpputest/tests/CppUTest/JUnitOutputTest.cpp:739: error: Failure in TEST(JUnitOutputTest, UTPRINTOutputInJUnitOutput)
UTPRINTOutputInJUnitOutput:739: error:
Deallocating non-allocated memory
allocated at file: line: 0 size: 0 type: unknown
deallocated at file: line: 0 type: delete
.
/home/max/project/max/cpputest/tests/CppUTest/JUnitOutputTest.cpp:722: error: Failure in TEST(JUnitOutputTest, MultipleTestCasesInDifferentGroupsWithAssertions)
MultipleTestCasesInDifferentGroupsWithAssertions:722: error:
Deallocating non-allocated memory
allocated at file: line: 0 size: 0 type: unknown
deallocated at file: line: 0 type: delete
.
/home/max/project/max/cpputest/tests/CppUTest/JUnitOutputTest.cpp:708: error: Failure in TEST(JUnitOutputTest, MultipleTestCaseBlocksWithAssertions)
MultipleTestCaseBlocksWithAssertions:708: error:
Deallocating non-allocated memory
allocated at file: line: 0 size: 0 type: unknown
deallocated at file: line: 0 type: delete
.
/home/max/project/max/cpputest/tests/CppUTest/JUnitOutputTest.cpp:694: error: Failure in TEST(JUnitOutputTest, TestCaseBlockWithAssertions)
TestCaseBlockWithAssertions:694: error:
Deallocating non-allocated memory
allocated at file: line: 0 size: 0 type: unknown
deallocated at file: line: 0 type: delete
.
/home/max/project/max/cpputest/tests/CppUTest/JUnitOutputTest.cpp:680: error: Failure in TEST(JUnitOutputTest, MultipleTestCaseWithTestLocations)
MultipleTestCaseWithTestLocations:680: error:
Deallocating non-allocated memory
allocated at file: line: 0 size: 0 type: unknown
deallocated at file: line: 0 type: delete
.
/home/max/project/max/cpputest/tests/CppUTest/JUnitOutputTest.cpp:667: error: Failure in TEST(JUnitOutputTest, TestCaseWithTestLocation)
TestCaseWithTestLocation:667: error:
Deallocating non-allocated memory
allocated at file: line: 0 size: 0 type: unknown
deallocated at file: line: 0 type: delete
.
/home/max/project/max/cpputest/tests/CppUTest/JUnitOutputTest.cpp:653: error: Failure in TEST(JUnitOutputTest, TestCaseBlockForIgnoredTest)
TestCaseBlockForIgnoredTest:653: error:
Deallocating non-allocated memory
allocated at file: line: 0 size: 0 type: unknown
deallocated at file: line: 0 type: delete
.
/home/max/project/max/cpputest/tests/CppUTest/JUnitOutputTest.cpp:640: error: Failure in TEST(JUnitOutputTest, TestCaseBlockWithAPackageName)
TestCaseBlockWithAPackageName:640: error:
Deallocating non-allocated memory
allocated at file: line: 0 size: 0 type: unknown
deallocated at file: line: 0 type: delete
.
/home/max/project/max/cpputest/tests/CppUTest/JUnitOutputTest.cpp:635: error: Failure in TEST(JUnitOutputTest, testGroupWithWeirdName)
testGroupWithWeirdName:635: error:
Deallocating non-allocated memory
allocated at file: line: 0 size: 0 type: unknown
deallocated at file: line: 0 type: delete
.
/home/max/project/max/cpputest/tests/CppUTest/JUnitOutputTest.cpp:621: error: Failure in TEST(JUnitOutputTest, twoTestGroupsWriteToTwoDifferentFiles)
twoTestGroupsWriteToTwoDifferentFiles:621: error:
Deallocating non-allocated memory
allocated at file: line: 0 size: 0 type: unknown
deallocated at file: line: 0 type: delete
.
/home/max/project/max/cpputest/tests/CppUTest/JUnitOutputTest.cpp:603: error: Failure in TEST(JUnitOutputTest, testFailuresInSeparateGroups)
testFailuresInSeparateGroups:603: error:
Deallocating non-allocated memory
allocated at file: line: 0 size: 0 type: unknown
deallocated at file: line: 0 type: delete
.
/home/max/project/max/cpputest/tests/CppUTest/JUnitOutputTest.cpp:586: error: Failure in TEST(JUnitOutputTest, aCoupleOfTestFailures)
aCoupleOfTestFailures:586: error:
Deallocating non-allocated memory
allocated at file: line: 0 size: 0 type: unknown
deallocated at file: line: 0 type: delete
.
/home/max/project/max/cpputest/tests/CppUTest/JUnitOutputTest.cpp:574: error: Failure in TEST(JUnitOutputTest, testFailureWithAmpersands)
testFailureWithAmpersands:574: error:
Deallocating non-allocated memory
allocated at file: line: 0 size: 0 type: unknown
deallocated at file: line: 0 type: delete
.
/home/max/project/max/cpputest/tests/CppUTest/JUnitOutputTest.cpp:562: error: Failure in TEST(JUnitOutputTest, testFailureWithAmpersandsAndLessThan)
testFailureWithAmpersandsAndLessThan:562: error:
Deallocating non-allocated memory
allocated at file: line: 0 size: 0 type: unknown
deallocated at file: line: 0 type: delete
.
/home/max/project/max/cpputest/tests/CppUTest/JUnitOutputTest.cpp:550: error: Failure in TEST(JUnitOutputTest, testFailureWithDifferentFileAndLine)
testFailureWithDifferentFileAndLine:550: error:
Deallocating non-allocated memory
allocated at file: line: 0 size: 0 type: unknown
deallocated at file: line: 0 type: delete
.
/home/max/project/max/cpputest/tests/CppUTest/JUnitOutputTest.cpp:538: error: Failure in TEST(JUnitOutputTest, testFailureWithNewlineInIt)
testFailureWithNewlineInIt:538: error:
Deallocating non-allocated memory
allocated at file: line: 0 size: 0 type: unknown
deallocated at file: line: 0 type: delete
.
/home/max/project/max/cpputest/tests/CppUTest/JUnitOutputTest.cpp:526: error: Failure in TEST(JUnitOutputTest, testFailureWithQuotesInIt)
testFailureWithQuotesInIt:526: error:
Deallocating non-allocated memory
allocated at file: line: 0 size: 0 type: unknown
deallocated at file: line: 0 type: delete
.
/home/max/project/max/cpputest/tests/CppUTest/JUnitOutputTest.cpp:514: error: Failure in TEST(JUnitOutputTest, testFailureWithLessThanAndGreaterThanInsideIt)
testFailureWithLessThanAndGreaterThanInsideIt:514: error:
Deallocating non-allocated memory
allocated at file: line: 0 size: 0 type: unknown
deallocated at file: line: 0 type: delete
.
/home/max/project/max/cpputest/tests/CppUTest/JUnitOutputTest.cpp:499: error: Failure in TEST(JUnitOutputTest, withTwoTestGroupAndOneFailingTest)
withTwoTestGroupAndOneFailingTest:499: error:
Deallocating non-allocated memory
allocated at file: line: 0 size: 0 type: unknown
deallocated at file: line: 0 type: delete
.
/home/max/project/max/cpputest/tests/CppUTest/JUnitOutputTest.cpp:484: error: Failure in TEST(JUnitOutputTest, withOneTestGroupAndOneFailingTest)
withOneTestGroupAndOneFailingTest:484: error:
Deallocating non-allocated memory
allocated at file: line: 0 size: 0 type: unknown
deallocated at file: line: 0 type: delete
.
/home/max/project/max/cpputest/tests/CppUTest/JUnitOutputTest.cpp:468: error: Failure in TEST(JUnitOutputTest, withOneTestGroupAndMultipleTestCasesWithElapsedTime)
withOneTestGroupAndMultipleTestCasesWithElapsedTime:468: error:
Deallocating non-allocated memory
allocated at file: line: 0 size: 0 type: unknown
deallocated at file: line: 0 type: delete
.
/home/max/project/max/cpputest/tests/CppUTest/JUnitOutputTest.cpp:457: error: Failure in TEST(JUnitOutputTest, withOneTestGroupAndTimeHasElapsedAndTimestampChanged)
withOneTestGroupAndTimeHasElapsedAndTimestampChanged:457: error:
Deallocating non-allocated memory
allocated at file: line: 0 size: 0 type: unknown
deallocated at file: line: 0 type: delete
.
/home/max/project/max/cpputest/tests/CppUTest/JUnitOutputTest.cpp:442: error: Failure in TEST(JUnitOutputTest, withOneTestGroupAndTwoTestCasesCreateCorrectTestgroupBlockAndCorrectTestCaseBlock)
withOneTestGroupAndTwoTestCasesCreateCorrectTestgroupBlockAndCorrectTestCaseBlock:442: error:
Deallocating non-allocated memory
allocated at file: line: 0 size: 0 type: unknown
deallocated at file: line: 0 type: delete
.
/home/max/project/max/cpputest/tests/CppUTest/JUnitOutputTest.cpp:430: error: Failure in TEST(JUnitOutputTest, withOneTestGroupAndOneTestFileShouldContainsATestCaseBlock)
withOneTestGroupAndOneTestFileShouldContainsATestCaseBlock:430: error:
Deallocating non-allocated memory
allocated at file: line: 0 size: 0 type: unknown
deallocated at file: line: 0 type: delete
.
/home/max/project/max/cpputest/tests/CppUTest/JUnitOutputTest.cpp:420: error: Failure in TEST(JUnitOutputTest, withOneTestGroupAndOneTestFileShouldContainAnEmptyStderrBlock)
withOneTestGroupAndOneTestFileShouldContainAnEmptyStderrBlock:420: error:
Deallocating non-allocated memory
allocated at file: line: 0 size: 0 type: unknown
deallocated at file: line: 0 type: delete
.
/home/max/project/max/cpputest/tests/CppUTest/JUnitOutputTest.cpp:410: error: Failure in TEST(JUnitOutputTest, withOneTestGroupAndOneTestFileShouldContainAnEmptyStdoutBlock)
withOneTestGroupAndOneTestFileShouldContainAnEmptyStdoutBlock:410: error:
Deallocating non-allocated memory
allocated at file: line: 0 size: 0 type: unknown
deallocated at file: line: 0 type: delete
.
/home/max/project/max/cpputest/tests/CppUTest/JUnitOutputTest.cpp:399: error: Failure in TEST(JUnitOutputTest, withOneTestGroupAndOneTestFileShouldContainAnEmptyPropertiesBlock)
withOneTestGroupAndOneTestFileShouldContainAnEmptyPropertiesBlock:399: error:
Deallocating non-allocated memory
allocated at file: line: 0 size: 0 type: unknown
deallocated at file: line: 0 type: delete
.
/home/max/project/max/cpputest/tests/CppUTest/JUnitOutputTest.cpp:388: error: Failure in TEST(JUnitOutputTest, withOneTestGroupAndOneTestOutputsTestSuiteStartAndEndBlocks)
withOneTestGroupAndOneTestOutputsTestSuiteStartAndEndBlocks:388: error:
Deallocating non-allocated memory
allocated at file: line: 0 size: 0 type: unknown
deallocated at file: line: 0 type: delete
.
/home/max/project/max/cpputest/tests/CppUTest/JUnitOutputTest.cpp:378: error: Failure in TEST(JUnitOutputTest, withOneTestGroupAndOneTestOutputsValidXMLFiles)
withOneTestGroupAndOneTestOutputsValidXMLFiles:378: error:
Deallocating non-allocated memory
allocated at file: line: 0 size: 0 type: unknown
deallocated at file: line: 0 type: delete
.
/home/max/project/max/cpputest/tests/CppUTest/JUnitOutputTest.cpp:368: error: Failure in TEST(JUnitOutputTest, withReservedCharactersInPackageOrTestGroupUsesUnderscoresForFileName)
withReservedCharactersInPackageOrTestGroupUsesUnderscoresForFileName:368: error:
Deallocating non-allocated memory
allocated at file: line: 0 size: 0 type: unknown
deallocated at file: line: 0 type: delete
.
/home/max/project/max/cpputest/tests/CppUTest/JUnitOutputTest.cpp:364: error: Failure in TEST(JUnitOutputTest, withOneTestGroupAndOneTestOnlyWriteToOneFile)
LONGS_EQUAL(1, fileSystem.amountOfFiles()) failed
expected < 1 (0x1)>
but was <34 (0x22)>
/home/max/project/max/cpputest/tests/CppUTest/JUnitOutputTest.cpp:358: error: Failure in TEST(JUnitOutputTest, withOneTestGroupAndOneTestOnlyWriteToOneFile)
withOneTestGroupAndOneTestOnlyWriteToOneFile:358: error:
Deallocating non-allocated memory
allocated at file: line: 0 size: 0 type: unknown
deallocated at file: line: 0 type: delete
.....................................
........!.........................................
..................................................
..................................................
..................................................
..................................................
..................................................
....
Errors (33 failures, 854 tests, 802 ran, 1511 checks, 52 ignored, 0 filtered out, 311 ms)
free(): double free detected in tcache 2
Aborted (core dumped)