Crinit -- Configurable Rootfs Init
Loading...
Searching...
No Matches
case-malloc-error.c File Reference

(/usr/bin/git 2023-11-27, commit: bad6102)

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.