From 9898341d4a2b34e1b485e071b7ae8fb34b46f757 Mon Sep 17 00:00:00 2001 From: Johannes Schlatow Date: Thu, 12 Aug 2021 15:48:30 +0200 Subject: [PATCH] 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 --- repos/os/src/test/trace/main.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/repos/os/src/test/trace/main.cc b/repos/os/src/test/trace/main.cc index 0bca614b72..3e810859d4 100644 --- a/repos/os/src/test/trace/main.cc +++ b/repos/os/src/test/trace/main.cc @@ -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); } };