From 3adb5dd7b92bab98ed079f2a4729a6b281b3dbde Mon Sep 17 00:00:00 2001 From: Dennis Skinner <1518323+Skinner927@users.noreply.github.com> Date: Mon, 4 Dec 2023 13:38:50 -0500 Subject: [PATCH] Add FALLTHRU --- src/unity.c | 3 ++- test/tests/test_generate_test_runner.rb | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/unity.c b/src/unity.c index 8b858c9..b105fa2 100644 --- a/src/unity.c +++ b/src/unity.c @@ -2329,7 +2329,8 @@ int UnityParseOptions(int argc, char** argv) UnityPrint("ERROR: Unknown Option "); UNITY_OUTPUT_CHAR(argv[i][1]); UNITY_PRINT_EOL(); - /* fall-through to display help */ + /* Now display help */ + /* FALLTHRU */ case 'h': UnityPrint("Options: "); UNITY_PRINT_EOL(); UnityPrint("-l List all tests and exit"); UNITY_PRINT_EOL(); diff --git a/test/tests/test_generate_test_runner.rb b/test/tests/test_generate_test_runner.rb index 0f92a3a..229b6ab 100644 --- a/test/tests/test_generate_test_runner.rb +++ b/test/tests/test_generate_test_runner.rb @@ -1163,7 +1163,7 @@ RUNNER_TESTS = [ "Options:", "-l List all tests and exit", "-f NAME Filter to run only tests whose name includes NAME", - "-n NAME (deprecated) alias of -f", + "-n NAME \\(deprecated\\) alias of -f", "-h show this Help menu", "-q Quiet/decrease verbosity", "-v increase Verbosity", @@ -1187,7 +1187,7 @@ RUNNER_TESTS = [ "Options:", "-l List all tests and exit", "-f NAME Filter to run only tests whose name includes NAME", - "-n NAME (deprecated) alias of -f", + "-n NAME \\(deprecated\\) alias of -f", "-h show this Help menu", "-q Quiet/decrease verbosity", "-v increase Verbosity",