Crinit -- Configurable Rootfs Init
regression-test.c File Reference

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

Implementation of a regression test to check the compile-time configuration of libinih. More...

#include <string.h>
#include "common.h"
#include "ini.h"
#include "unit_test.h"
#include "utest-inih-configuration.h"
Include dependency graph for regression-test.c:

Macros

#define STR_CHECK_INLINE   "CHECK_INLINE"
 
#define STR_SEMICOLON_LINE   "this line should not ; be cut at the semicolon"
 

Functions

static int crinitIniHandler (void *userP, const char *section, const char *name, const char *value)
 
void crinitInihConfigurationRegressionTest (void **state)
 

Detailed Description

Implementation of a regression test to check the compile-time configuration of libinih.

Macro Definition Documentation

◆ STR_CHECK_INLINE

#define STR_CHECK_INLINE   "CHECK_INLINE"

◆ STR_SEMICOLON_LINE

#define STR_SEMICOLON_LINE   "this line should not ; be cut at the semicolon"

Function Documentation

◆ crinitIniHandler()

static int crinitIniHandler ( void *  userP,
const char *  section,
const char *  name,
const char *  value 
)
static

◆ crinitInihConfigurationRegressionTest()

void crinitInihConfigurationRegressionTest ( void **  state)

Regression test for libinih compile-time configuration.

Checks that the custom compile-time configuration for libinih defined in deps/inih/README.md is actually used and followed.