]> pd.if.org Git - liblfds/blob - liblfds/liblfds7.1.0/test_and_benchmark/libtest/src/libtest_test/libtest_test_init.c
Initial import (all versions, including the new 7.1.0)
[liblfds] / liblfds / liblfds7.1.0 / test_and_benchmark / libtest / src / libtest_test / libtest_test_init.c
1 /***** includes *****/
2 #include "libtest_test_internal.h"
3
4
5
6
7
8 /****************************************************************************/
9 void libtest_test_init( struct libtest_test_state *ts,
10                         char *name,
11                         enum libtest_test_id test_id,
12                         void (*test_function)(struct lfds710_list_asu_state *list_of_logical_processors, struct libshared_memory_state *ms, enum lfds710_misc_validity *dvs) )
13 {
14   LFDS710_PAL_ASSERT( ts != NULL );
15   LFDS710_PAL_ASSERT( name != NULL );
16   // TRD : test_id can be any value in its range
17   LFDS710_PAL_ASSERT( test_function != NULL );
18
19   ts->name = name;
20   ts->test_id = test_id;
21   ts->test_function = test_function;
22
23   return;
24 }
25