Skip to content

Commit cdde768

Browse files
committed
net/sctp: Fix local variable declaration in dash
`local' builtin is problematic there is no POSIX equivalent [1]. Dash (unlike bash) supports only local varname (not local var=value) Using the unsupported syntax leads to error: /opt/ltp/testcases/bin/sctp01.sh: 40: local: 65000: bad variable name This is a quick fix, better than working with input parameters would be to add another test case in runtest/net.features. Fixes: 7ade6a3 ("sctp: add test-case with random payload") [1] http://mywiki.wooledge.org/Bashism#Builtins Signed-off-by: Petr Vorel <[email protected]> Suggested-by: Cyril Hrubis <[email protected]> Acked-by: Cyril Hrubis <[email protected]>
1 parent 265b6a6 commit cdde768

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

testcases/network/sctp/sctp01.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ setup()
3737

3838
test_run()
3939
{
40-
local opts="$@"
40+
local opts
41+
42+
opts="$@"
4143

4244
tst_resm TINFO "compare TCP/SCTP performance"
4345

0 commit comments

Comments
 (0)