![]() |
The ROme OpTimistic Simulator
3.0.0
A General-Purpose Multithreaded Parallel/Distributed Simulation Platform
|
Test framework header. More...
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
Go to the source code of this file.
Data Structures | |
struct | test_config |
A complete test configuration. More... | |
Macros | |
#define | TEST_BAD_FAIL_EXIT_CODE 99 |
The exit code of tests when something fails horribly. | |
Typedefs | |
typedef uint64_t | lp_id_t |
typedef unsigned | rid_t |
typedef int | nid_t |
Functions | |
int | test_printf (const char *restrict fmt,...) |
Registers a formatted string to compare against the expected output. More... | |
bool | test_thread_barrier (void) |
Synchronizes threads on a barrier. More... | |
Variables | |
const struct test_config | test_config |
The test configuration object, must be defined by the test sources. | |
Test framework header.
The header of the minimal test framework used in the code base tests
Definition in file test.h.
int test_printf | ( | const char *restrict | fmt, |
... | |||
) |
bool test_thread_barrier | ( | void | ) |
Synchronizes threads on a barrier.
This is a more battle tested although less performing version of the thread barrier. We can't rely on the pthread barrier because it's not portable.
Definition at line 200 of file test.c.