Crinit -- Configurable Rootfs Init
case-crinit-response-code-error.c File Reference

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

Unit test for crinitClientTaskAdd() testing error handling for error code response. More...

#include "common.h"
#include "crinit-client.h"
#include "rtimcmd.h"
#include "unit_test.h"
#include "utest-crinit-task-add.h"
Include dependency graph for case-crinit-response-code-error.c:

Macros

#define TEST_CONFIG_FILE   "/test/config/file"
 
#define TEST_FORCE_DEPS   "foo:wait"
 

Functions

void crinitClientTaskAddTestCrinitResponseCodeError (void **state)
 

Variables

static crinitRtimCmd_tcrinitBuildRtimArgCmd
 
static crinitRtimCmd_tcrinitXferArgRes
 
static char * crinitXferArgResErrArgs [1] = {CRINIT_RTIMCMD_RES_ERR}
 
static crinitRtimCmd_t crinitXferArgResErr
 
static struct crinitStoreRtimCmdArgs crinitXferArgResContext
 

Detailed Description

Unit test for crinitClientTaskAdd() testing error handling for error code response.

Macro Definition Documentation

◆ TEST_CONFIG_FILE

#define TEST_CONFIG_FILE   "/test/config/file"

◆ TEST_FORCE_DEPS

#define TEST_FORCE_DEPS   "foo:wait"

Function Documentation

◆ crinitClientTaskAddTestCrinitResponseCodeError()

void crinitClientTaskAddTestCrinitResponseCodeError ( void **  state)

Unit test for crinitClientTaskAdd() testing error handling for error code response.

Variable Documentation

◆ crinitBuildRtimArgCmd

crinitRtimCmd_t* crinitBuildRtimArgCmd
static

◆ crinitXferArgRes

crinitRtimCmd_t* crinitXferArgRes
static

◆ crinitXferArgResContext

struct crinitStoreRtimCmdArgs crinitXferArgResContext
static
Initial value:
= {
}
static crinitRtimCmd_t crinitXferArgResErr
Definition: case-crinit-response-code-error.c:19
static crinitRtimCmd_t * crinitXferArgRes
Definition: case-crinit-response-code-error.c:17

◆ crinitXferArgResErr

crinitRtimCmd_t crinitXferArgResErr
static
Initial value:
= {
.op = CRINIT_RTIMCMD_R_ADDTASK, .argc = 1, .args = crinitXferArgResErrArgs}
static char * crinitXferArgResErrArgs[1]
Definition: case-crinit-response-code-error.c:18

◆ crinitXferArgResErrArgs

char* crinitXferArgResErrArgs[1] = {CRINIT_RTIMCMD_RES_ERR}
static