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

(/usr/bin/git 2025-03-27, commit: ab142e6)

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

#include <stdlib.h>
#include <string.h>
#include "common.h"
#include "confhdl.h"
#include "globopt.h"
#include "unit_test.h"
#include "utest-crinit-create-launcher-parameters.h"
Include dependency graph for case-success.c:

Macros

#define TRUE_CMD   "/bin/true"
 

Functions

static crinitTask_tcrinitCreateTaskWithUserAndGroup (const char *taskname, size_t supGroupCount, gid_t *supGroups)
 
int crinitCreateLauncherParameters (crinitTaskCmd_t *taskCmd, crinitTask_t *tCopy, char *cmd, char ***argv, char **argvBuffer)
 
void crinitCfgLauncherCmdHandlerTestWithOneGroupSuccess (void **state)
 
void crinitCfgLauncherCmdHandlerTestWithTwoGroupsSuccess (void **state)
 
void crinitCfgLauncherCmdHandlerTestWithThreeGroupsSuccess (void **state)
 

Detailed Description

Unit test for crinitCreateLauncherParameters(), successful execution.

Macro Definition Documentation

◆ TRUE_CMD

#define TRUE_CMD   "/bin/true"

Function Documentation

◆ crinitCfgLauncherCmdHandlerTestWithOneGroupSuccess()

void crinitCfgLauncherCmdHandlerTestWithOneGroupSuccess ( void **  state)

Tests successful parsing of a command with one group.

◆ crinitCfgLauncherCmdHandlerTestWithThreeGroupsSuccess()

void crinitCfgLauncherCmdHandlerTestWithThreeGroupsSuccess ( void **  state)

Tests successful parsing of a command with three groups (one main group, two supplementary groups).

◆ crinitCfgLauncherCmdHandlerTestWithTwoGroupsSuccess()

void crinitCfgLauncherCmdHandlerTestWithTwoGroupsSuccess ( void **  state)

Tests successful parsing of a command with two groups (one main group, one supplementary group).

◆ crinitCreateLauncherParameters()

int crinitCreateLauncherParameters ( crinitTaskCmd_t taskCmd,
crinitTask_t tCopy,
char *  cmd,
char ***  argv,
char **  argvBuffer 
)

◆ crinitCreateTaskWithUserAndGroup()

static crinitTask_t * crinitCreateTaskWithUserAndGroup ( const char *  taskname,
size_t  supGroupCount,
gid_t *  supGroups 
)
static