From ec8a855751d50aeaad2c2096fff15db4823f27da Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Mon, 24 Aug 2026 11:38:34 +0000 Subject: [PATCH] tests: Add test for issue 6735 Add a test that sets a cpu-affinity path with --set using the non-legacy syntax against a legacy list format cpu-affinity configuration. Ticket: #6735. --- tests/bug-6735/suricata.yaml | 13 +++++++++++++ tests/bug-6735/test.yaml | 9 +++++++++ 2 files changed, 22 insertions(+) create mode 100644 tests/bug-6735/suricata.yaml create mode 100644 tests/bug-6735/test.yaml diff --git a/tests/bug-6735/suricata.yaml b/tests/bug-6735/suricata.yaml new file mode 100644 index 0000000000..ec1a2cde63 --- /dev/null +++ b/tests/bug-6735/suricata.yaml @@ -0,0 +1,13 @@ +%YAML 1.1 +--- + +threading: + set-cpu-affinity: yes + cpu-affinity: + - management-cpu-set: + cpu: [ 0 ] + - worker-cpu-set: + cpu: ["all"] + mode: exclusive + prio: + default: medium diff --git a/tests/bug-6735/test.yaml b/tests/bug-6735/test.yaml new file mode 100644 index 0000000000..114dee4eaf --- /dev/null +++ b/tests/bug-6735/test.yaml @@ -0,0 +1,9 @@ +requires: + min-version: 9 + +pcap: false + +args: + - --set threading.cpu-affinity.worker-cpu-set.threads=28 + - -T + - --disable-detection