Skip to content

Commit c00882f

Browse files
committed
Update unittests for solo5
1 parent 28c6813 commit c00882f

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

test/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ set(OS_SOURCES
129129
${SRC}/hw/pci_msi.cpp
130130
${SRC}/hw/ps2.cpp
131131
${SRC}/hw/serial.cpp
132-
${SRC}/kernel/block.cpp
133132
${SRC}/kernel/cpuid.cpp
134133
${SRC}/kernel/elf.cpp
135134
${SRC}/kernel/irq_manager.cpp

test/lest_util/nic_mock.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ class Nic_mock : public hw::Nic {
128128
}
129129

130130
void flush() override {}
131+
void poll() override {}
131132

132133
private:
133134

test/lest_util/os_mock.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,17 @@ Timers::id_t Timers::periodic(duration_t, duration_t, handler_t) {
7373
}
7474

7575
#include <kernel/os.hpp>
76+
void OS::start(unsigned, unsigned) {
77+
}
78+
void OS::event_loop() {
79+
}
80+
void OS::block() {
81+
}
82+
int64_t OS::micros_since_boot() noexcept {
83+
return 0;
84+
}
7685
void OS::resume_softreset(intptr_t) {
77-
return;
7886
}
79-
8087
bool OS::is_softreset_magic(uint32_t) {
8188
return true;
8289
}

0 commit comments

Comments
 (0)