diff options
Diffstat (limited to 'test/main/main.cpp')
| -rw-r--r-- | test/main/main.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/main/main.cpp b/test/main/main.cpp index 57be6b24..58100766 100644 --- a/test/main/main.cpp +++ b/test/main/main.cpp @@ -5,9 +5,13 @@ */ #include <stdio.h> +#include <sys/fcntl.h> +#include <sys/unistd.h> #include <cstdint> +#include "freertos/FreeRTOS.h" + #include "catch_runner.hpp" #include "esp_console.h" #include "esp_log.h" @@ -27,6 +31,13 @@ void RegisterCatch2() { namespace console { class TestConsole : public Console { + public: + virtual auto PrerunCallback() -> void { + char* arg = "catch"; + exec_catch2(1, &arg); + Console::PrerunCallback(); + } + protected: virtual auto RegisterExtraComponents() -> void { RegisterCatch2(); } virtual auto GetStackSizeKiB() -> uint16_t { |
