summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/sets/0023incomplete_add_set_command_0
Commit message (Collapse)AuthorAgeFilesLines
* tests: shell: Add test for incomplete set add set commandShyam Saini2017-06-261-0/+16
Before c6cd7c22548a ("src: fix crash when inputting an incomplete set add command") commit, if we run nft with incomplete "add set" command it caused segmentation fault and exit with error code 139 and further it didn't throw any error message. For example: $ sudo nft add set t s But after the aforementioned commit it throws syntax error message and exits with return value 1. For example: $ sudo nft add set t s <cmdline>:1:12-12: Error: syntax error, unexpected newline, expecting '{' add set t s ^ This commit tests changes made in such commit. Signed-off-by: Shyam Saini <mayhs11saini@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>