mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-18 02:40:08 +00:00
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:
parent
99c9909508
commit
98ecde5b7b
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user