Project

General

Profile

Actions

Task #6489

open

test/stream/tcp-list: fix unittests

Added by Juliana Fajardini Reichow about 1 year ago.

Status:
New
Priority:
Normal
Assignee:
Target version:
Effort:
Difficulty:
Label:
Beginner

Description

With the heavy usage of macros in the unit tests in stream-tcp-list, some of the tests end up broken, as we don't check for the returns of the macro calls in the tests themselves.

Cf. https://github.com/OISF/suricata/pull/9694#discussion_r1374894595

As the comment states, we must ensure that calls to macros that return a FAIL or PASS statement are wrapped up by FAIL_IF or FAIL_IF_NOT statements.


Related issues 1 (1 open0 closed)

Related to Suricata - Task #6330: Convert unittests to new FAIL/PASS API - tests/stream-tcp-list.cNewCommunity TicketActions
Actions

Also available in: Atom PDF