base: fix conversion errors of smp timeout test

The cpu affinity index is an int no unsigned long within the interface
definition.

Ref genodelabs/genode#4344
This commit is contained in:
Stefan Kalkowski 2023-02-10 13:59:20 +01:00 committed by Christian Helmuth
parent e6c64290fa
commit c0e98f4481
2 changed files with 3 additions and 5 deletions

View File

@ -42,7 +42,7 @@ class Test_thread
Env &env,
TYPE &object,
Method method,
unsigned long cpu_idx,
int cpu_idx,
Affinity::Space affinity_space)
:
Thread {
@ -80,7 +80,7 @@ class Test_smp_2
unsigned long _count_3 { 0 };
unsigned long _count_4 { 0 };
unsigned long _count_5 { 0 };
unsigned long _cpu_idx { 1 };
int _cpu_idx { 1 };
bool volatile _timeouts_discarded { false };
bool _done_called { false };
Mutex _done_mutex { };
@ -211,7 +211,7 @@ class Test_smp_1
Env &_env;
unsigned long &_nr_of_errors;
unsigned long _cpu_idx { 1 };
int _cpu_idx { 1 };
bool _max_nr_of_handle_calls_reached { false };
Timer::Connection _timeout_timer { _env };
Timer::Connection _sleep_timer { _env };

View File

@ -1,5 +1,3 @@
TARGET = test-timeout_smp
SRC_CC = main.cc
LIBS = base
CC_CXX_WARN_STRICT_CONVERSION =