The ROme OpTimistic Simulator  3.0.0
A General-Purpose Multithreaded Parallel/Distributed Simulation Platform
test_main.c File Reference

Main stub for test. More...

#include <test.h>
#include <arch/thread.h>
+ Include dependency graph for test_main.c:

Go to the source code of this file.

Data Structures

struct  stub_arguments
 The arguments passed to test threads. More...
 

Functions

static thr_ret_t THREAD_CALL_CONV test_run_stub (void *arg)
 The entry point of the test threads. More...
 
int main (int argc, char **argv)
 The main entry point of the custom compiler. More...
 

Detailed Description

Main stub for test.

The main function stub for tests which do not declare a main() entry point

Definition in file test_main.c.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

The main entry point of the custom compiler.

Parameters
argcThe count of command line arguments, as per ISO C standard
argvThe list of command line arguments, as per ISO C standard

Definition at line 36 of file test_main.c.

+ Here is the call graph for this function:

◆ test_run_stub()

static thr_ret_t THREAD_CALL_CONV test_run_stub ( void *  arg)
static

The entry point of the test threads.

  • the arguments passed by the main stub, a struct stub_arguments
    Returns
    THREAD_RET_SUCCESS in case of success, THREAD_RET_FAILURE otherwise

Definition at line 28 of file test_main.c.

+ Here is the caller graph for this function: