From 94f8165503a97d14d11397816a4c6ea375c0e62f Mon Sep 17 00:00:00 2001 From: achaulk-goog <107196446+achaulk-goog@users.noreply.github.com> Date: Wed, 10 Apr 2024 16:45:41 -0400 Subject: [PATCH] Only implement fault injection with NLFAULTINJECTION on --- src/inet/tests/TestInetCommonOptions.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/inet/tests/TestInetCommonOptions.cpp b/src/inet/tests/TestInetCommonOptions.cpp index fc9c8df320a5c6..fdc79b11954a27 100644 --- a/src/inet/tests/TestInetCommonOptions.cpp +++ b/src/inet/tests/TestInetCommonOptions.cpp @@ -243,6 +243,7 @@ FaultInjectionOptions::FaultInjectionOptions() ExtraCleanupTimeMsec = 0; } +#if defined(CHIP_WITH_NLFAULTINJECTION) && CHIP_WITH_NLFAULTINJECTION bool FaultInjectionOptions::HandleOption(const char * progName, OptionSet * optSet, int id, const char * name, const char * arg) { using namespace nl::FaultInjection; @@ -292,3 +293,4 @@ bool FaultInjectionOptions::HandleOption(const char * progName, OptionSet * optS return true; } +#endif // defined(CHIP_WITH_NLFAULTINJECTION) && CHIP_WITH_NLFAULTINJECTION