Skip to content

Commit

Permalink
Only implement fault injection with NLFAULTINJECTION on (#32934)
Browse files Browse the repository at this point in the history
  • Loading branch information
achaulk-goog authored Apr 10, 2024
1 parent c6c8e67 commit 1cbd57d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/inet/tests/TestInetCommonOptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -292,3 +293,4 @@ bool FaultInjectionOptions::HandleOption(const char * progName, OptionSet * optS

return true;
}
#endif // defined(CHIP_WITH_NLFAULTINJECTION) && CHIP_WITH_NLFAULTINJECTION

0 comments on commit 1cbd57d

Please sign in to comment.