Crinit -- Configurable Rootfs Init
case-success.c File Reference

(2023-10-16, commit: 49337e0)

Unit test for crinitEnvSetDestroy(), successful execution. More...

#include <stdio.h>
#include "common.h"
#include "envset.h"
#include "string.h"
#include "unit_test.h"
#include "utest-envset-destroy.h"
Include dependency graph for case-success.c:

Macros

#define CRINIT_DUMMY_INITIALIZED_ELEMENTS   (CRINIT_ENVSET_INITIAL_SIZE / 2uL)
 

Functions

void crinitEnvSetDestroyTestSuccess (void **state)
 

Detailed Description

Unit test for crinitEnvSetDestroy(), successful execution.

Macro Definition Documentation

◆ CRINIT_DUMMY_INITIALIZED_ELEMENTS

#define CRINIT_DUMMY_INITIALIZED_ELEMENTS   (CRINIT_ENVSET_INITIAL_SIZE / 2uL)

Function Documentation

◆ crinitEnvSetDestroyTestSuccess()

void crinitEnvSetDestroyTestSuccess ( void **  state)

Tests successful desruction of an environment set.

Will check that all allocated pointers in the EnvSet are freed.