From ce3d41433ed0cf5de2cb6cd48e76f487f04b4daf Mon Sep 17 00:00:00 2001 From: Kimmo Vaisanen Date: Mon, 16 Sep 2019 16:00:02 +0300 Subject: [PATCH] Fix CellularDevice::shutdown UT As shutdown was overridden in test class, original shutdown() method was not called at all. --- UNITTESTS/target_h/myCellularDevice.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/UNITTESTS/target_h/myCellularDevice.h b/UNITTESTS/target_h/myCellularDevice.h index ff99be062c..f69b7dcafd 100644 --- a/UNITTESTS/target_h/myCellularDevice.h +++ b/UNITTESTS/target_h/myCellularDevice.h @@ -35,7 +35,7 @@ class FileHandle; class myCellularDevice : public CellularDevice { public: myCellularDevice(FileHandle *fh) : CellularDevice(fh), _context_list(0), _network(0) {} - ~myCellularDevice() + virtual ~myCellularDevice() { delete _context_list; delete _network; @@ -125,11 +125,6 @@ public: return NSAPI_ERROR_OK; } - virtual nsapi_error_t shutdown() - { - return NSAPI_ERROR_OK; - } - virtual nsapi_error_t is_ready() { return NSAPI_ERROR_OK;