@@ -199,21 +199,18 @@ bool NetworkOptions::HandleOption(const char * progName, OptionSet * optSet, int
199
199
FaultInjectionOptions::FaultInjectionOptions ()
200
200
{
201
201
static OptionDef optionDefs[] = {
202
- #if CHIP_CONFIG_TEST || CHIP_SYSTEM_CONFIG_TEST || INET_CONFIG_TEST
203
202
{ " faults" , kArgumentRequired , kToolCommonOpt_FaultInjection },
204
203
{ " iterations" , kArgumentRequired , kToolCommonOpt_FaultTestIterations },
205
204
{ " debug-resource-usage" , kNoArgument , kToolCommonOpt_DebugResourceUsage },
206
205
{ " print-fault-counters" , kNoArgument , kToolCommonOpt_PrintFaultCounters },
207
206
{ " extra-cleanup-time" , kArgumentRequired , kToolCommonOpt_ExtraCleanupTime },
208
- #endif
209
207
{}
210
208
};
211
209
OptionDefs = optionDefs;
212
210
213
211
HelpGroupName = " FAULT INJECTION OPTIONS" ;
214
212
215
213
OptionHelp =
216
- #if CHIP_CONFIG_TEST || CHIP_SYSTEM_CONFIG_TEST || INET_CONFIG_TEST
217
214
" --faults <fault-string>\n "
218
215
" Inject specified fault(s) into the operation of the tool at runtime.\n "
219
216
" \n "
@@ -233,7 +230,6 @@ FaultInjectionOptions::FaultInjectionOptions()
233
230
" should fail a normal happy-sequence test, but not necessarily a fault-injection test.\n "
234
231
" The value is in milliseconds; a common value is 10000.\n "
235
232
" \n "
236
- #endif
237
233
" " ;
238
234
239
235
// Defaults
@@ -253,7 +249,6 @@ bool FaultInjectionOptions::HandleOption(const char * progName, OptionSet * optS
253
249
254
250
switch (id)
255
251
{
256
- #if CHIP_CONFIG_TEST || CHIP_SYSTEM_CONFIG_TEST || INET_CONFIG_TEST
257
252
case kToolCommonOpt_FaultInjection : {
258
253
chip::Platform::ScopedMemoryString mutableArg (arg, strlen (arg));
259
254
assert (mutableArg);
@@ -285,7 +280,6 @@ bool FaultInjectionOptions::HandleOption(const char * progName, OptionSet * optS
285
280
return false ;
286
281
}
287
282
break ;
288
- #endif // CHIP_CONFIG_TEST || CHIP_SYSTEM_CONFIG_TEST || INET_CONFIG_TEST
289
283
default :
290
284
PrintArgError (" %s: INTERNAL ERROR: Unhandled option: %s\n " , progName, name);
291
285
return false ;
0 commit comments