Skip to content

Commit 12733c8

Browse files
committed
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 <[email protected]>
1 parent 3d05834 commit 12733c8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/test_option_twiddling

+2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ EXPECT_success optstring_has_option optstring maxproto
2626

2727
EXPECT_failure optstring_get_option optstring proto
2828
EXPECT_success optstring_get_option optstring maxproto
29+
# shellcheck disable=SC2154 # set via the optstring helper above
2930
ASSERT_streq "$maxproto" "5"
3031
EXPECT_success optstring_get_option optstring timeout
32+
# shellcheck disable=SC2154 # set via the optstring helper above
3133
ASSERT_streq "$timeout" "300"
3234

3335
optstring_remove_option optstring pgrp

0 commit comments

Comments
 (0)