From 47e7132763633d88307ed5fadaf5f2b11d5490c6 Mon Sep 17 00:00:00 2001 From: Patrick McHardy Date: Tue, 4 Feb 2014 08:27:22 +0000 Subject: tests: add two tests for error reporting Mixed syntactical and non-syntactical errors in individual commands and blocks. Signed-off-by: Patrick McHardy --- tests/error.2 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/error.2 (limited to 'tests/error.2') diff --git a/tests/error.2 b/tests/error.2 new file mode 100644 index 00000000..744a63d5 --- /dev/null +++ b/tests/error.2 @@ -0,0 +1,18 @@ +#! nft -f + +# mixed syntactical and non-syntactical errors in blocks +table filter { + # missing identifier + chain + + # missing chain block + chain output + + chain output { + tcp + tcp dport + tcp dport tcp + tcp dport tcp dport + tcp dport ssh + } +} -- cgit v1.2.3