Crinit -- Configurable Rootfs Init
case-malloc-error.c File Reference

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

Unit test for crinitEnvSetInit() testing error handling of failed allocation. More...

#include "common.h"
#include "envset.h"
#include "unit_test.h"
#include "utest-envset-init.h"
Include dependency graph for case-malloc-error.c:

Functions

void crinitEnvSetInitTestMallocError (void **state)
 

Detailed Description

Unit test for crinitEnvSetInit() testing error handling of failed allocation.

Function Documentation

◆ crinitEnvSetInitTestMallocError()

void crinitEnvSetInitTestMallocError ( void **  state)

Tests handling of a memory allocation error.