The ROme OpTimistic Simulator  3.0.0
A General-Purpose Multithreaded Parallel/Distributed Simulation Platform
test_config Struct Reference

A complete test configuration. More...

#include <test.h>

Data Fields

int(* test_init_fnc )(void)
 The test initialization function. More...
 
int(* test_fini_fnc )(void)
 The test finalization function. More...
 
int(* test_fnc )(void)
 The core test function. More...
 
unsigned threads_count
 test_fnc is executed with that many cores
 
const char * expected_output
 The expected output from the whole sequence of test_printf() calls.
 
size_t expected_output_size
 The expected output size of the full sequence of test_printf() calls.
 
const char ** test_arguments
 The command line arguments passed to the wrapped main function.
 

Detailed Description

A complete test configuration.

Definition at line 22 of file test.h.

Field Documentation

◆ test_fini_fnc

int(* test_config::test_fini_fnc) (void)

The test finalization function.

The return value is used as failure exit code if it is non-zero

Definition at line 28 of file test.h.

◆ test_fnc

int(* test_config::test_fnc) (void)

The core test function.

The return value is used as failure exit code if it is non-zero.

Definition at line 31 of file test.h.

◆ test_init_fnc

int(* test_config::test_init_fnc) (void)

The test initialization function.

The return value is used as failure exit code if it is non-zero

Definition at line 25 of file test.h.


The documentation for this struct was generated from the following file: