Skip to content

Commit 1cbd57d

Browse files
authored
Only implement fault injection with NLFAULTINJECTION on (#32934)
1 parent c6c8e67 commit 1cbd57d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/inet/tests/TestInetCommonOptions.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ FaultInjectionOptions::FaultInjectionOptions()
243243
ExtraCleanupTimeMsec = 0;
244244
}
245245

246+
#if defined(CHIP_WITH_NLFAULTINJECTION) && CHIP_WITH_NLFAULTINJECTION
246247
bool FaultInjectionOptions::HandleOption(const char * progName, OptionSet * optSet, int id, const char * name, const char * arg)
247248
{
248249
using namespace nl::FaultInjection;
@@ -292,3 +293,4 @@ bool FaultInjectionOptions::HandleOption(const char * progName, OptionSet * optS
292293

293294
return true;
294295
}
296+
#endif // defined(CHIP_WITH_NLFAULTINJECTION) && CHIP_WITH_NLFAULTINJECTION

0 commit comments

Comments
 (0)