genode/repos/os/run/weak_ptr.run
Norman Feske 0be6817226 Add 'Weak_ptr' to the public Genode API
So far, the lifetime-management utilities 'Weak_ptr' and 'Locked_ptr'
had been preserved for core-internal use only. However, the utilities
are handy for many use cases outside of core where object lifetimes
must be managed. So we promote them to the public API.
2014-08-11 15:55:32 +02:00

37 lines
815 B
Plaintext

build "core init drivers/timer test/weak_ptr"
create_boot_directory
install_config {
<config>
<parent-provides>
<service name="ROM"/>
<service name="LOG"/>
<service name="CAP"/>
<service name="CPU"/>
<service name="RAM"/>
<service name="RM"/>
<service name="PD"/>
<service name="SIGNAL"/>
</parent-provides>
<default-route>
<any-service> <any-child/> <parent/> </any-service>
</default-route>
<start name="timer">
<resource name="RAM" quantum="1M"/>
<provides><service name="Timer"/></provides>
</start>
<start name="test-weak_ptr">
<resource name="RAM" quantum="10M"/>
</start>
</config>
}
build_boot_image "core init timer test-weak_ptr"
append qemu_args "-nographic -m 64"
run_genode_until "--- finished test-weak_ptr ---.*\n" 30
puts "Test succeeded"