Project

General

Profile

Actions

Optimization #4066

closed

Add a PASS_IF_NULL macro to the FAIL/PASS API

Added by Shivani Bhardwaj almost 4 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Effort:
Difficulty:
Label:
Beginner, C, Outreachy

Description

src/util-unittests.h contains a few macro definitions that are being used in the new tests. There is PASS, PASS_IF for the success paths. Add a `PASS_IF_NULL` macro. Its function should be as the name suggests. It should pass if the value provided to it is NULL.


Related issues 1 (0 open1 closed)

Related to Suricata - Optimization #4795: Remove PASS_IF macro from the FAIL/PASS APIClosedJuliana Fajardini ReichowActions
Actions

Also available in: Atom PDF