mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-21 08:29:41 +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:
committed by
Christian Helmuth
parent
812fdec27c
commit
9898341d4a
@ -261,8 +261,8 @@ struct Test_tracing
|
|||||||
/* wait some time before querying the subjects */
|
/* wait some time before querying the subjects */
|
||||||
timer.msleep(3000);
|
timer.msleep(3000);
|
||||||
|
|
||||||
Trace::Subject_id subjects[32];
|
Trace::Subject_id subjects[64];
|
||||||
size_t num_subjects = trace.subjects(subjects, 32);
|
size_t num_subjects = trace.subjects(subjects, 64);
|
||||||
|
|
||||||
log(num_subjects, " tracing subjects present");
|
log(num_subjects, " tracing subjects present");
|
||||||
|
|
||||||
@ -317,10 +317,11 @@ struct Test_tracing
|
|||||||
if (test_monitor.constructed()) {
|
if (test_monitor.constructed()) {
|
||||||
test_monitor->dump();
|
test_monitor->dump();
|
||||||
test_monitor.destruct();
|
test_monitor.destruct();
|
||||||
}
|
|
||||||
|
|
||||||
log("passed Tracing test");
|
log("passed Tracing test");
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
error("Thread '", thread_name, "' not found for session ", policy_label);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user