From 98ecde5b7bda8538c5d38ea5b8beb6232eaebc68 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Mon, 27 May 2024 17:05:25 +0200 Subject: [PATCH] test/platform_drv: stabilize final state The test reverts the platform drivers' config at the end of the test to an empty state. However, this state should still contain a default policy (analogyously to the initial state). Otherwise, the platform session of the test program will (sometimes) become invalid just before successfully finishing the test. --- repos/os/src/test/platform_drv/main.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/repos/os/src/test/platform_drv/main.cc b/repos/os/src/test/platform_drv/main.cc index 30b0be207d..3ba1d65422 100644 --- a/repos/os/src/test/platform_drv/main.cc +++ b/repos/os/src/test/platform_drv/main.cc @@ -196,7 +196,8 @@ struct Main { Platform::Device dev (*platform, Platform::Device::Type({"dummy-device"})); if (dev._cap.valid()) log("Found next valid device of dummy type"); - Reporter::Xml_generator xml(config_reporter, [&] () {}); + Reporter::Xml_generator xml(config_reporter, [&] { + xml.node("default-policy", [&] { }); }); break; } default: