Skip to content

Commit c71c980

Browse files
rajkan01kjbracey
authored andcommitted
Fix the CI build and unit test issue
1 parent 5601a20 commit c71c980

File tree

8 files changed

+1
-111
lines changed

8 files changed

+1
-111
lines changed

UNITTESTS/features/cellular/framework/device/athandler/athandlertest.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#include "mbed_poll_stub.h"
2626
#include "CellularUtil_stub.h"
2727

28-
#include "Timer_stub.h"
2928

3029
using namespace mbed;
3130
using namespace events;
@@ -228,7 +227,6 @@ TEST_F(TestATHandler, test_ATHandler_process_oob)
228227
at.process_oob();
229228

230229
at.clear_error();
231-
timer_stub_value = 0;
232230
filehandle_stub_table_pos = 0;
233231
at.read_bytes(buf, 5);
234232

@@ -244,7 +242,6 @@ TEST_F(TestATHandler, test_ATHandler_process_oob)
244242
filehandle_stub_table = table2;
245243

246244
at.clear_error();
247-
timer_stub_value = 0;
248245
filehandle_stub_table_pos = 0;
249246
mbed_poll_stub::revents_value = POLLIN;
250247
mbed_poll_stub::int_value = 1;

UNITTESTS/features/cellular/framework/device/athandler/unittest.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ set(unittest-test-sources
2828
stubs/SerialBase_stub.cpp
2929
stubs/mbed_assert_stub.cpp
3030
stubs/mbed_poll_stub.cpp
31-
stubs/Timer_stub.cpp
3231
stubs/equeue_stub.c
3332
stubs/Kernel_stub.cpp
3433
stubs/ThisThread_stub.cpp

UNITTESTS/platform/ATCmdParser/test_ATCmdParser.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#include <stdarg.h>
2424
#include "FileHandle_stub.h"
2525
#include "mbed_poll_stub.h"
26-
#include "Timer_stub.h"
2726

2827
using namespace mbed;
2928

@@ -110,7 +109,6 @@ TEST_F(test_ATCmdParser, test_ATCmdParser_process_oob)
110109
at.process_oob();
111110
expected_oob_callback = false;
112111

113-
timer_stub_value = 0;
114112
filehandle_stub_table_pos = 0;
115113
at.read(buf, 5);
116114

@@ -127,7 +125,6 @@ TEST_F(test_ATCmdParser, test_ATCmdParser_process_oob)
127125
table2[4] = 0;
128126
filehandle_stub_table = table2;
129127

130-
timer_stub_value = 0;
131128
filehandle_stub_table_pos = 0;
132129
mbed_poll_stub::revents_value = POLLIN;
133130
mbed_poll_stub::int_value = 1;

UNITTESTS/stubs/Timer_stub.cpp

Lines changed: 0 additions & 74 deletions
This file was deleted.

UNITTESTS/stubs/Timer_stub.h

Lines changed: 0 additions & 25 deletions
This file was deleted.

drivers/Timeout.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,6 @@ class Timeout : public TimeoutBase {
9797
/** Clock to use with attach_absolute, guaranteeing running only while attached or manually locked */
9898
using clock = HighResClock;
9999

100-
/** Clock to use with attach_absolute, running always */
101-
using steady_clock = SteadyHighResClock;
102-
103100
/** @copydoc TimeoutBase::scheduled_time() */
104101
HighResClock::time_point scheduled_time() const
105102
{

drivers/source/Timeout.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ Timeout::Timeout() : TimeoutBase(get_us_ticker_data(), true)
4444
* (In C++17 could avoid the need for this by making the members inline).
4545
*/
4646
const bool HighResClock::is_steady;
47-
const bool SteadyHighResClock::is_steady;
4847
const bool LowPowerClock::is_steady;
49-
mstd::once_flag SteadyHighResClock::init;
5048
const bool RealTimeClock::is_steady;
5149

5250
#if DEVICE_LPTICKER

rtos/ConditionVariable.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include "rtos/mbed_rtos_types.h"
2929
#include "rtos/Mutex.h"
3030
#include "rtos/Semaphore.h"
31+
#include "rtos/Kernel.h"
3132

3233
#include "platform/NonCopyable.h"
3334

0 commit comments

Comments
 (0)