mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-08 20:05:54 +00:00
depot_autopilot: fix ineffective test-trace
test-trace always passed, although tracing was never enabled because the trace subject was not within the first 32 subjects. * increase number of queried subjects * output error if trace subject was not found genodelabs/genode#4247
This commit is contained in:
parent
812fdec27c
commit
9898341d4a
@ -261,8 +261,8 @@ struct Test_tracing
|
||||
/* wait some time before querying the subjects */
|
||||
timer.msleep(3000);
|
||||
|
||||
Trace::Subject_id subjects[32];
|
||||
size_t num_subjects = trace.subjects(subjects, 32);
|
||||
Trace::Subject_id subjects[64];
|
||||
size_t num_subjects = trace.subjects(subjects, 64);
|
||||
|
||||
log(num_subjects, " tracing subjects present");
|
||||
|
||||
@ -317,9 +317,10 @@ struct Test_tracing
|
||||
if (test_monitor.constructed()) {
|
||||
test_monitor->dump();
|
||||
test_monitor.destruct();
|
||||
log("passed Tracing test");
|
||||
}
|
||||
|
||||
log("passed Tracing test");
|
||||
else
|
||||
error("Thread '", thread_name, "' not found for session ", policy_label);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user