Bug #1467

Updated by herck almost 4 years ago


* Leakages have been present already in previous version of functional test. There are probably some new.

* All builders with components should delete them on destruction
* ICloneableRegistry which becomes now IRegistry should delete objects it owns
*
FutestSuite should delete test on exit

<pre>

168 bytes in 1 blocks are possibly lost in loss record 375 of 751
in TestFormFactorsRegistry::TestFormFactorsRegistry() in /home/pospelov/development/BornAgain/BornAgain/Core/TestMachinery/SubtestRegistry.cpp:98
1: operator new(unsigned long) in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so
2: TestFormFactorsRegistry::TestFormFactorsRegistry() in /home/pospelov/development/BornAgain/BornAgain/Core/TestMachinery/SubtestRegistry.cpp:98
3: FutestSuite::execute_subtests() in /home/pospelov/development/BornAgain/BornAgain/Core/TestMachinery/FutestSuite.cpp:67
4: FutestSuite::execute(int, char**) in /home/pospelov/development/BornAgain/BornAgain/Core/TestMachinery/FutestSuite.cpp:44
5: main in /home/pospelov/development/BornAgain/BornAgain/Tests/Functional/Core/CoreSuite.cpp:30

176 (96 direct, 80 indirect) bytes in 1 blocks are definitely lost in loss record 407 of 751
in FormFactorFullSphere::clone() const in /home/pospelov/development/BornAgain/BornAgain/Core/FormFactors/FormFactorFullSphere.cpp:36
1: operator new(unsigned long) in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so
2: FormFactorFullSphere::clone() const in /home/pospelov/development/BornAgain/BornAgain/Core/FormFactors/FormFactorFullSphere.cpp:36
3: ISampleBuilder::getFormFactor() const in /home/pospelov/development/BornAgain/build-debug/lib/_libBornAgainCore.so
4: ParticleInTheAirBuilder::buildSample() const in /home/pospelov/development/BornAgain/BornAgain/Core/StandardSamples/ParticleInTheAirBuilder.cpp:34
5: Simulation::updateSample() in /home/pospelov/development/BornAgain/BornAgain/Core/Algorithms/Simulation.cpp:163
6: Simulation::runSingleSimulation() in /home/pospelov/development/BornAgain/BornAgain/Core/Algorithms/Simulation.cpp:179
7: Simulation::runSimulation() in /home/pospelov/development/BornAgain/BornAgain/Core/Algorithms/Simulation.cpp:83
8: CoreFutest::runTest() in /home/pospelov/development/BornAgain/BornAgain/Core/TestMachinery/CoreFutest.cpp:46
9: FutestSuite::execute_subtests() in /home/pospelov/development/BornAgain/BornAgain/Core/TestMachinery/FutestSuite.cpp:85
10: FutestSuite::execute(int, char**) in /home/pospelov/development/BornAgain/BornAgain/Core/TestMachinery/FutestSuite.cpp:44
11: main in /home/pospelov/development/BornAgain/BornAgain/Tests/Functional/Core/CoreSuite.cpp:30

1,389 (336 direct, 1,053 indirect) bytes in 21 blocks are definitely lost in loss record 463 of 751
in OutputDataReadFactory::getReader(std::string const&amp;) in /home/pospelov/development/BornAgain/BornAgain/Core/InputOutput/OutputDataReadFactory.cpp:26
1: operator new(unsigned long) in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so
2: OutputDataReadFactory::getReader(std::string const&amp;) in /home/pospelov/development/BornAgain/BornAgain/Core/InputOutput/OutputDataReadFactory.cpp:26
3: IntensityDataIOFactory::readOutputData(std::string const&amp;) in /home/pospelov/development/BornAgain/BornAgain/Core/InputOutput/IntensityDataIOFactory.cpp:26
4: CoreFutest::runTest() in /home/pospelov/development/BornAgain/BornAgain/Core/TestMachinery/CoreFutest.cpp:51
5: FutestSuite::execute_subtests() in /home/pospelov/development/BornAgain/BornAgain/Core/TestMachinery/FutestSuite.cpp:85
6: FutestSuite::execute(int, char**) in /home/pospelov/development/BornAgain/BornAgain/Core/TestMachinery/FutestSuite.cpp:44
7: main in /home/pospelov/development/BornAgain/BornAgain/Tests/Functional/Core/CoreSuite.cpp:30

4,929,265 (1,512 direct, 4,927,753 indirect) bytes in 21 blocks are definitely lost in loss record 751 of 751
in FutestSuite::execute_subtests() in /home/pospelov/development/BornAgain/BornAgain/Core/TestMachinery/FutestSuite.cpp:82
1: operator new(unsigned long) in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so
2: CoreSuite::getFutest() const in /home/pospelov/development/BornAgain/build-debug/bin/CoreSuite
3: FutestSuite::execute_subtests() in /home/pospelov/development/BornAgain/BornAgain/Core/TestMachinery/FutestSuite.cpp:82
4: FutestSuite::execute(int, char**) in /home/pospelov/development/BornAgain/BornAgain/Core/TestMachinery/FutestSuite.cpp:44
5: main in /home/pospelov/development/BornAgain/BornAgain/Tests/Functional/Core/CoreSuite.cpp:30

</pre>

Back