Skip to contentSkip to conversation

rt-tests: Add missing option F to optstring

PATCH In review [email protected] 2 participants 2 messages Sep 13, 2021 – Sep 14, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rt-tests: Add missing option F to optstring

From: Leah Leshchinsky <[email protected]>

The cyclictest help output lists -F as the short version of the --fifo option, yet calling cyclictest -F produces an error"
cyclictest: invalid option --'F'".
This patch adds -F as a valid argument.

---
 src/cyclictest/cyclictest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/cyclictest/cyclictest.c +1 -1
index a08c91d..f8f7dbc 100644
@@ -1011,7 +1011,7 @@ static void process_options(int argc, char *argv[], int max_cpus)
 			{"posix_timers",     no_argument,	NULL, OPT_POSIX_TIMERS },
 			{NULL, 0, NULL, 0 },
 		};
-		int c = getopt_long(argc, argv, "a::A::b:c:d:D:h:H:i:l:MNo:p:mqrRsSt::uvD:x",
+		int c = getopt_long(argc, argv, "a::A::b:c:d:D:F:h:H:i:l:MNo:p:mqrRsSt::uvD:x",
 				    long_options, &option_index);
 		if (c == -1)
 			break;
Signature · 1 line
2.27.0
#1 lore raw
Quoted 29 lines · On Mon, 13 Sep 2021, [email protected] wrote:

From: Leah Leshchinsky <[email protected]>

The cyclictest help output lists -F as the short version of the --fifo option, yet calling cyclictest -F produces an error"
cyclictest: invalid option --'F'".
This patch adds -F as a valid argument.

---
 src/cyclictest/cyclictest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/cyclictest/cyclictest.c +1 -1
index a08c91d..f8f7dbc 100644
@@ -1011,7 +1011,7 @@ static void process_options(int argc, char *argv[], int max_cpus)
 			{"posix_timers",     no_argument,	NULL, OPT_POSIX_TIMERS },
 			{NULL, 0, NULL, 0 },
 		};
-		int c = getopt_long(argc, argv, "a::A::b:c:d:D:h:H:i:l:MNo:p:mqrRsSt::uvD:x",
+		int c = getopt_long(argc, argv, "a::A::b:c:d:D:F:h:H:i:l:MNo:p:mqrRsSt::uvD:x",
 				    long_options, &option_index);
 		if (c == -1)
 			break;
Signature · 1 line
2.27.0

Thanks