Crinit -- Configurable Rootfs Init
case-glob-opt-error.c File Reference

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

Implementation of a unit test for crinitClientSetVerbose() with the assumption crinitGlobOptSet() fails. More...

#include "common.h"
#include "crinit-client.h"
#include "mock-glob-opt-set-boolean.h"
#include "unit_test.h"
#include "utest-crinit-set-verbose.h"
Include dependency graph for case-glob-opt-error.c:

Functions

void crinitClientSetVerboseTestGlobOptError (void **state)
 

Detailed Description

Implementation of a unit test for crinitClientSetVerbose() with the assumption crinitGlobOptSet() fails.

Function Documentation

◆ crinitClientSetVerboseTestGlobOptError()

void crinitClientSetVerboseTestGlobOptError ( void **  state)

Unit test for crinitClientSetVerbose(), unsuccessful case (failure of crinitGlobOptSet()).

Checks that the right values are delivered to crinitGlobOptSet() and that -1 is returned.