@@ -198,39 +198,36 @@ bool NetworkOptions::HandleOption(const char * progName, OptionSet * optSet, int
198
198
199
199
FaultInjectionOptions::FaultInjectionOptions ()
200
200
{
201
- static OptionDef optionDefs[] = {
202
- { " faults" , kArgumentRequired , kToolCommonOpt_FaultInjection },
203
- { " iterations" , kArgumentRequired , kToolCommonOpt_FaultTestIterations },
204
- { " debug-resource-usage" , kNoArgument , kToolCommonOpt_DebugResourceUsage },
205
- { " print-fault-counters" , kNoArgument , kToolCommonOpt_PrintFaultCounters },
206
- { " extra-cleanup-time" , kArgumentRequired , kToolCommonOpt_ExtraCleanupTime },
207
- {}
208
- };
209
- OptionDefs = optionDefs;
201
+ static OptionDef optionDefs[] = { { " faults" , kArgumentRequired , kToolCommonOpt_FaultInjection },
202
+ { " iterations" , kArgumentRequired , kToolCommonOpt_FaultTestIterations },
203
+ { " debug-resource-usage" , kNoArgument , kToolCommonOpt_DebugResourceUsage },
204
+ { " print-fault-counters" , kNoArgument , kToolCommonOpt_PrintFaultCounters },
205
+ { " extra-cleanup-time" , kArgumentRequired , kToolCommonOpt_ExtraCleanupTime },
206
+ {} };
207
+ OptionDefs = optionDefs;
210
208
211
209
HelpGroupName = " FAULT INJECTION OPTIONS" ;
212
210
213
- OptionHelp =
214
- " --faults <fault-string>\n "
215
- " Inject specified fault(s) into the operation of the tool at runtime.\n "
216
- " \n "
217
- " --iterations <int>\n "
218
- " Execute the program operation the given number of times\n "
219
- " \n "
220
- " --debug-resource-usage\n "
221
- " Print all stats counters before exiting.\n "
222
- " \n "
223
- " --print-fault-counters\n "
224
- " Print the fault-injection counters before exiting.\n "
225
- " \n "
226
- " --extra-cleanup-time\n "
227
- " Allow extra time before asserting resource leaks; this is useful when\n "
228
- " running fault-injection tests to let the system free stale ExchangeContext\n "
229
- " instances after RMP has exhausted all retransmission; a failed RMP transmission\n "
230
- " should fail a normal happy-sequence test, but not necessarily a fault-injection test.\n "
231
- " The value is in milliseconds; a common value is 10000.\n "
232
- " \n "
233
- " " ;
211
+ OptionHelp = " --faults <fault-string>\n "
212
+ " Inject specified fault(s) into the operation of the tool at runtime.\n "
213
+ " \n "
214
+ " --iterations <int>\n "
215
+ " Execute the program operation the given number of times\n "
216
+ " \n "
217
+ " --debug-resource-usage\n "
218
+ " Print all stats counters before exiting.\n "
219
+ " \n "
220
+ " --print-fault-counters\n "
221
+ " Print the fault-injection counters before exiting.\n "
222
+ " \n "
223
+ " --extra-cleanup-time\n "
224
+ " Allow extra time before asserting resource leaks; this is useful when\n "
225
+ " running fault-injection tests to let the system free stale ExchangeContext\n "
226
+ " instances after RMP has exhausted all retransmission; a failed RMP transmission\n "
227
+ " should fail a normal happy-sequence test, but not necessarily a fault-injection test.\n "
228
+ " The value is in milliseconds; a common value is 10000.\n "
229
+ " \n "
230
+ " " ;
234
231
235
232
// Defaults
236
233
TestIterations = 1 ;
0 commit comments