libcamera/test
Niklas Söderlund 53b549b631 tests: call the derived Test class cleanup() function
Calling the cleanup() function in the base class Test destructor only
calls the base class empty cleanup() function, not the overloaded one.
This results in tests not cleaning up after themself. Solve this by
explicitly calling the cleanup() function from execute().

This was discovered while running valgrind on tests where objects where
allocated in init() and freed in cleanup().

Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2018-12-21 06:47:27 +02:00
..
init.cpp libcamera: Use the logger instead of cout 2018-12-06 16:43:45 +02:00
meson.build tests: Add a base Test class 2018-12-21 06:44:55 +02:00
test.cpp tests: call the derived Test class cleanup() function 2018-12-21 06:47:27 +02:00
test.h tests: Add a base Test class 2018-12-21 06:44:55 +02:00