From 541d1b37b5673eb8fe79d41e221ec095688c0090 Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Mon, 14 Oct 2024 10:13:45 +0100 Subject: [PATCH] Fix CI. --- compile_flags.txt | 2 ++ lib/firewall/firewall.cc | 2 +- lib/tcpip/driver_adaptor.cc | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/compile_flags.txt b/compile_flags.txt index 6e958f1..85af9c8 100644 --- a/compile_flags.txt +++ b/compile_flags.txt @@ -35,6 +35,8 @@ riscv32-unknown-unknown -Ilib/tcpip -Ilib/tls -Iinclude +-DCHERIOT_RTOS_OPTION_FORCE_NON_UNIQUE_MAC=true +-DCHERIOT_RTOS_OPTION_NETWORK_INJECT_FAULTS=true -DCHERIOT_RTOS_OPTION_IPv6 -DDEBUG_LOADER=false -DDEBUG_ALLOCATOR=false diff --git a/lib/firewall/firewall.cc b/lib/firewall/firewall.cc index 2187332..6a8924c 100644 --- a/lib/firewall/firewall.cc +++ b/lib/firewall/firewall.cc @@ -427,7 +427,7 @@ namespace SmallTable testSmallTableZeroLength(0); testSmallTableZeroLength.contains(1); - Debug::log("Testing small table pointer-based remove"); + Debug::log("Testing small table pointer-based remove"); testSmallTable.insert(1); testSmallTable.remove(testSmallTable.begin()); Debug::Assert( diff --git a/lib/tcpip/driver_adaptor.cc b/lib/tcpip/driver_adaptor.cc index 481dd3f..5e0685a 100644 --- a/lib/tcpip/driver_adaptor.cc +++ b/lib/tcpip/driver_adaptor.cc @@ -117,7 +117,8 @@ bool __cheri_compartment("TCPIP") { if (faultInjected) { - ConditionalDebug::log("Triggering crash"); + ConditionalDebug::log( + "Triggering crash"); faultInjected = false; // Inject a fault by giving the frame an incorrect length. // This will cause the TCP/IP stack to read beyond the end.