From 12733c86cb334e71fc077f9f5a87074035f65572 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Fri, 24 Mar 2023 19:30:29 +0000 Subject: [PATCH] tests: silence "referenced but not assigned" warnings The optstring* helpers do the assignment, which isn't particularly easy for shellcheck to deduce. So silence the warnings. Signed-off-by: Emil Velikov --- test/test_option_twiddling | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_option_twiddling b/test/test_option_twiddling index 793e848..9244df9 100755 --- a/test/test_option_twiddling +++ b/test/test_option_twiddling @@ -26,8 +26,10 @@ EXPECT_success optstring_has_option optstring maxproto EXPECT_failure optstring_get_option optstring proto EXPECT_success optstring_get_option optstring maxproto +# shellcheck disable=SC2154 # set via the optstring helper above ASSERT_streq "$maxproto" "5" EXPECT_success optstring_get_option optstring timeout +# shellcheck disable=SC2154 # set via the optstring helper above ASSERT_streq "$timeout" "300" optstring_remove_option optstring pgrp