Skip to content

Commit dd372f8

Browse files
committed
wip
1 parent ed4846b commit dd372f8

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

test/test_determinism.c

+10-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ enkiTaskSet* tasks[e_maxTasks];
3838
TaskData taskData[e_maxTasks];
3939
int taskCount;
4040

41-
void ExecuteRangeTask( uint32_t start, uint32_t end, uint32_t threadIndex, void* context )
41+
static void ExecuteRangeTask( uint32_t start, uint32_t end, uint32_t threadIndex, void* context )
4242
{
4343
TaskData* data = context;
4444
data->box2dTask( start, end, threadIndex, data->box2dContext );
@@ -84,7 +84,7 @@ static void FinishTask( void* userTask, void* userContext )
8484
enkiWaitForTaskSet( scheduler, task );
8585
}
8686

87-
void TiltedStacks( int testIndex, int workerCount )
87+
static void TiltedStacks( int testIndex, int workerCount )
8888
{
8989
scheduler = enkiNewTaskScheduler();
9090
struct enkiTaskSchedulerConfig config = enkiGetTaskSchedulerConfig( scheduler );
@@ -176,7 +176,7 @@ void TiltedStacks( int testIndex, int workerCount )
176176
}
177177

178178
// Test multithreaded determinism.
179-
int DeterminismTest( void )
179+
static int MultithreadingTest( void )
180180
{
181181
// Test 1 : 4 threads
182182
TiltedStacks( 0, 4 );
@@ -200,3 +200,10 @@ int DeterminismTest( void )
200200

201201
return 0;
202202
}
203+
204+
int DeterminismTest( void )
205+
{
206+
RUN_SUBTEST( MultithreadingTest );
207+
208+
return 0;
209+
}

0 commit comments

Comments
 (0)