aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJoão Valverde <j@v6e.pt>2022-12-22 18:31:32 +0000
committerJoão Valverde <j@v6e.pt>2022-12-22 23:51:16 +0000
commit4e1211de90ec0b382043a526ea2f4600da3033b5 (patch)
tree10b1e8798f4818287c8d6b2b6b854bec094f207e /test
parent5dcefc77777f47407801f8c51d3951fcb675da6e (diff)
dfilter: Add support for negation of arithmetic expressions
Diffstat (limited to 'test')
-rw-r--r--test/suite_dfilter/group_syntax.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/suite_dfilter/group_syntax.py b/test/suite_dfilter/group_syntax.py
index 9b2d6cadc4..5cd4d50cd4 100644
--- a/test/suite_dfilter/group_syntax.py
+++ b/test/suite_dfilter/group_syntax.py
@@ -232,6 +232,10 @@ class case_unary_minus(unittest.TestCase):
dfilter = "-2 == tcp.dstport"
checkDFilterFail(dfilter, error)
+ def test_unary_4(self, checkDFilterCount):
+ dfilter = "tcp.window_size_scalefactor == -{tcp.dstport * 20}"
+ checkDFilterCount(dfilter, 0)
+
@fixtures.uses_fixtures
class case_arithmetic(unittest.TestCase):
trace_file = "dhcp.pcap"