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.
This commit is contained in:
Norman Feske 2024-05-27 17:05:25 +02:00 committed by Christian Helmuth
parent 99c9909508
commit 98ecde5b7b

View File

@ -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: