diff --git a/test/fixtures/hwcdc_kiss_setup.cpp b/test/fixtures/hwcdc_kiss_setup.cpp index 794e1d009..b5ae05860 100644 --- a/test/fixtures/hwcdc_kiss_setup.cpp +++ b/test/fixtures/hwcdc_kiss_setup.cpp @@ -1,5 +1,6 @@ // The runner inserts the production KISS setup and backend selection. #include +#include #include #include #include @@ -56,6 +57,10 @@ struct Board { #endif calls.push_back("board.begin"); } + bool applyMcuRegulator(mesh::power::RegulatorMode mode) { + assert(mode == mesh::power::RegulatorMode::Default); + return false; + } void reboot() { assert(false); } void onBootComplete() { calls.push_back("boot.complete"); } void loop() { calls.push_back("board.loop"); } diff --git a/test/test_hwcdc_tx_backport.py b/test/test_hwcdc_tx_backport.py index 747a91b46..11b9b9b30 100644 --- a/test/test_hwcdc_tx_backport.py +++ b/test/test_hwcdc_tx_backport.py @@ -471,7 +471,10 @@ int main(){ # outside pinned2.0.17 C3/S3 mode1. Link hooks are strong, never silent weak stubs. self.assertIn('ESP_ARDUINO_VERSION_PATCH == 17',source) self.assertIn('CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32S3',source) - self.assertNotIn('__attribute__((weak))',source[:source.index('namespace mesh {')]) + preamble=source[:source.index('namespace mesh {')] + for declaration in preamble.split(';'): + if 'meshEsp32Hwcdc' in declaration: + self.assertNotIn('__attribute__((weak))',declaration) self.assertIn('Serial.setTxTimeoutMs(5);',source) self.assertIn('tx_timeout_ms / portTICK_PERIOD_MS',PATCHED) self.assertNotIn('max_consec_timeouts',PATCHED)