Skip to content

Commit 621a341

Browse files
authored
emulation: add fake cont_yield (#6210)
* emulation: add fake cont_yield (temporarily disable littleFS mock due to missing file) * fix makefile
1 parent ec7bdfa commit 621a341

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

tests/host/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ MOCK_CPP_FILES_EMU := $(MOCK_CPP_FILES_COMMON) $(addprefix common/,\
106106
ArduinoMain.cpp \
107107
ArduinoMainUdp.cpp \
108108
ArduinoMainSpiffs.cpp \
109-
ArduinoMainLittlefs.cpp \
110109
user_interface.cpp \
111110
)
111+
#(not in tree) ArduinoMainLittlefs.cpp
112112

113113
MOCK_C_FILES := $(addprefix common/,\
114114
md5.c \

tests/host/common/Arduino.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,9 @@ extern "C" void delayMicroseconds(unsigned int us)
6363
{
6464
usleep(us);
6565
}
66+
67+
#include "cont.h"
68+
cont_t* g_pcont = NULL;
69+
extern "C" void cont_yield(cont_t*)
70+
{
71+
}

tests/host/common/ArduinoMain.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ static struct option options[] =
152152
void cleanup ()
153153
{
154154
mock_stop_spiffs();
155-
mock_stop_littlefs();
155+
// mock_stop_littlefs();
156156
mock_stop_uart();
157157
}
158158

@@ -239,7 +239,7 @@ int main (int argc, char* const argv [])
239239
name += "-littlefs";
240240
name += String(littlefs_kb > 0? littlefs_kb: -littlefs_kb, DEC);
241241
name += "KB";
242-
mock_start_littlefs(name, littlefs_kb);
242+
// mock_start_littlefs(name, littlefs_kb);
243243
}
244244

245245
// setup global global_ipv4_netfmt

0 commit comments

Comments
 (0)