aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJoão Valverde <j@v6e.pt>2023-01-07 21:19:28 +0000
committerJoão Valverde <j@v6e.pt>2023-01-07 21:21:36 +0000
commit46d58f97cc824b9d92adb33d1fe643354e6c6224 (patch)
tree8dae89215218ad13bbbe66212e1c9d4e657e17e2 /test
parent4d3f5809614fe7745799d44d37f44e46cf8c0230 (diff)
dfilter: Add a test
Diffstat (limited to 'test')
-rw-r--r--test/suite_dfilter/group_syntax.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/suite_dfilter/group_syntax.py b/test/suite_dfilter/group_syntax.py
index 77762fb8ea..6fc928870e 100644
--- a/test/suite_dfilter/group_syntax.py
+++ b/test/suite_dfilter/group_syntax.py
@@ -266,6 +266,11 @@ class case_unary_minus(unittest.TestCase):
dfilter = "tcp.window_size_scalefactor == -{tcp.dstport * 20}"
checkDFilterCount(dfilter, 0)
+ def test_unary_invalid_1(self, checkDFilterFail):
+ error = 'FT_PROTOCOL cannot be negated'
+ dfilter = "-tcp"
+ checkDFilterFail(dfilter, error)
+
@fixtures.uses_fixtures
class case_arithmetic(unittest.TestCase):
trace_file = "dhcp.pcap"