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:
Johannes Schlatow 2021-08-12 15:48:30 +02:00 committed by Christian Helmuth
parent 812fdec27c
commit 9898341d4a

View File

@ -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);
}
};