aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2022-11-03 17:31:29 +0000
committerGerald Combs <gerald@wireshark.org>2022-11-07 01:00:50 +0000
commitdf478a365d40d29b41ab74087b701a90396422a0 (patch)
tree9c047db08a60efc7dbe259a025f070914f2fb2b0 /test
parent16afad10fbd8bd0ef8a94d049c23f2a39f6045ab (diff)
dfilter: treat carriage returns as whitespace
Fixes #18595
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 235c57468b..9b2d6cadc4 100644
--- a/test/suite_dfilter/group_syntax.py
+++ b/test/suite_dfilter/group_syntax.py
@@ -124,6 +124,10 @@ class case_syntax(unittest.TestCase):
dfilter = "icmp and ((icmp.type > 0 and icmp.type < 8) or icmp.type > 8)"
checkDFilterSucceed(dfilter)
+ def test_whitespace(self, checkDFilterSucceed):
+ dfilter = '\ttcp.stream \r\n== 1'
+ checkDFilterSucceed(dfilter)
+
@fixtures.uses_fixtures
class case_equality(unittest.TestCase):
trace_file = "sip.pcapng"