From ac322d3becbb7bc6c557129fd61a35367b682e42 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Wed, 19 Jun 2024 09:15:31 +0000 Subject: [PATCH] Restyled by clang-format --- src/inet/tests/TestInetCommonOptions.cpp | 57 +++++++++++------------- 1 file changed, 27 insertions(+), 30 deletions(-) mode change 100755 => 100644 src/inet/tests/TestInetCommonOptions.cpp diff --git a/src/inet/tests/TestInetCommonOptions.cpp b/src/inet/tests/TestInetCommonOptions.cpp old mode 100755 new mode 100644 index 0e6909f60d97c7..ac51573e095e6e --- a/src/inet/tests/TestInetCommonOptions.cpp +++ b/src/inet/tests/TestInetCommonOptions.cpp @@ -198,39 +198,36 @@ bool NetworkOptions::HandleOption(const char * progName, OptionSet * optSet, int FaultInjectionOptions::FaultInjectionOptions() { - static OptionDef optionDefs[] = { - { "faults", kArgumentRequired, kToolCommonOpt_FaultInjection }, - { "iterations", kArgumentRequired, kToolCommonOpt_FaultTestIterations }, - { "debug-resource-usage", kNoArgument, kToolCommonOpt_DebugResourceUsage }, - { "print-fault-counters", kNoArgument, kToolCommonOpt_PrintFaultCounters }, - { "extra-cleanup-time", kArgumentRequired, kToolCommonOpt_ExtraCleanupTime }, - {} - }; - OptionDefs = optionDefs; + static OptionDef optionDefs[] = { { "faults", kArgumentRequired, kToolCommonOpt_FaultInjection }, + { "iterations", kArgumentRequired, kToolCommonOpt_FaultTestIterations }, + { "debug-resource-usage", kNoArgument, kToolCommonOpt_DebugResourceUsage }, + { "print-fault-counters", kNoArgument, kToolCommonOpt_PrintFaultCounters }, + { "extra-cleanup-time", kArgumentRequired, kToolCommonOpt_ExtraCleanupTime }, + {} }; + OptionDefs = optionDefs; HelpGroupName = "FAULT INJECTION OPTIONS"; - OptionHelp = - " --faults \n" - " Inject specified fault(s) into the operation of the tool at runtime.\n" - "\n" - " --iterations \n" - " Execute the program operation the given number of times\n" - "\n" - " --debug-resource-usage\n" - " Print all stats counters before exiting.\n" - "\n" - " --print-fault-counters\n" - " Print the fault-injection counters before exiting.\n" - "\n" - " --extra-cleanup-time\n" - " Allow extra time before asserting resource leaks; this is useful when\n" - " running fault-injection tests to let the system free stale ExchangeContext\n" - " instances after RMP has exhausted all retransmission; a failed RMP transmission\n" - " should fail a normal happy-sequence test, but not necessarily a fault-injection test.\n" - " The value is in milliseconds; a common value is 10000.\n" - "\n" - ""; + OptionHelp = " --faults \n" + " Inject specified fault(s) into the operation of the tool at runtime.\n" + "\n" + " --iterations \n" + " Execute the program operation the given number of times\n" + "\n" + " --debug-resource-usage\n" + " Print all stats counters before exiting.\n" + "\n" + " --print-fault-counters\n" + " Print the fault-injection counters before exiting.\n" + "\n" + " --extra-cleanup-time\n" + " Allow extra time before asserting resource leaks; this is useful when\n" + " running fault-injection tests to let the system free stale ExchangeContext\n" + " instances after RMP has exhausted all retransmission; a failed RMP transmission\n" + " should fail a normal happy-sequence test, but not necessarily a fault-injection test.\n" + " The value is in milliseconds; a common value is 10000.\n" + "\n" + ""; // Defaults TestIterations = 1;