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

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

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

#include "common.h"
#include "lexers.h"
#include "string.h"
#include "unit_test.h"
#include "utest-lexers-envset-outer.h"
Include dependency graph for case-success.c:

Macros

#define CRINIT_DUMMY_ENVIRONMENT_VALUE   "Some quoted value with $VAR\\x2e"
 

Functions

void crinitEnvVarOuterLexTestSuccess (void **state)
 

Detailed Description

Unit test for crinitClientTaskAdd(), successful execution.

Macro Definition Documentation

◆ CRINIT_DUMMY_ENVIRONMENT_VALUE

#define CRINIT_DUMMY_ENVIRONMENT_VALUE   "Some quoted value with $VAR\\x2e"

Function Documentation

◆ crinitEnvVarOuterLexTestSuccess()

void crinitEnvVarOuterLexTestSuccess ( void **  state)

Tests successful lex-ing of valid inputs.

All possible return values of crinitEnvVarOuterLex() save for CRINIT_TK_ERR are triggered using accordingly built input strings.