mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-29 18:18:54 +00:00
0be6817226
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.
37 lines
815 B
Plaintext
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"
|