2016-12-01 16:37:08 +00:00
|
|
|
build "core init test/reconstructible"
|
|
|
|
|
|
|
|
create_boot_directory
|
|
|
|
|
|
|
|
install_config {
|
|
|
|
<config>
|
|
|
|
<parent-provides>
|
|
|
|
<service name="ROM"/>
|
|
|
|
<service name="CPU"/>
|
|
|
|
<service name="RM"/>
|
|
|
|
<service name="PD"/>
|
|
|
|
<service name="LOG"/>
|
|
|
|
</parent-provides>
|
|
|
|
<default-route>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</default-route>
|
2017-05-07 20:36:11 +00:00
|
|
|
<default caps="100"/>
|
2016-12-01 16:37:08 +00:00
|
|
|
<start name="test-reconstructible">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
</start>
|
|
|
|
</config>
|
|
|
|
}
|
|
|
|
|
2016-12-01 18:00:11 +00:00
|
|
|
build_boot_image "core ld.lib.so init test-reconstructible"
|
2016-12-01 16:37:08 +00:00
|
|
|
|
2017-05-23 13:05:55 +00:00
|
|
|
append qemu_args "-nographic "
|
2016-12-01 16:37:08 +00:00
|
|
|
|
2017-08-14 06:19:24 +00:00
|
|
|
run_genode_until {.*--- Reconstructible utility test finished ---.*\n} 20
|
2016-12-01 16:37:08 +00:00
|
|
|
|
|
|
|
grep_output {-> test-reconstructible}
|
|
|
|
|
|
|
|
compare_output_to {
|
2017-01-17 11:58:00 +00:00
|
|
|
[init -> test-reconstructible] --- Reconstructible utility test ---
|
2016-12-01 16:37:08 +00:00
|
|
|
[init -> test-reconstructible] construct Object 1
|
|
|
|
[init -> test-reconstructible] construct Object 2
|
2017-01-17 11:58:00 +00:00
|
|
|
[init -> test-reconstructible] create Compound object
|
2016-12-01 16:37:08 +00:00
|
|
|
[init -> test-reconstructible] construct Member_with_reference
|
|
|
|
[init -> test-reconstructible] construct Compound
|
|
|
|
[init -> test-reconstructible] compound.member.constructed returns 1
|
|
|
|
[init -> test-reconstructible] compound.lazy_member.constructed returns 0
|
2017-01-17 11:58:00 +00:00
|
|
|
[init -> test-reconstructible] construct lazy member
|
2016-12-01 16:37:08 +00:00
|
|
|
[init -> test-reconstructible] construct Member_with_reference
|
|
|
|
[init -> test-reconstructible] compound.lazy_member.constructed returns 1
|
2017-01-17 11:58:00 +00:00
|
|
|
[init -> test-reconstructible] call method on member (with reference to Object 1)
|
2016-12-01 16:37:08 +00:00
|
|
|
[init -> test-reconstructible] const method called on Object 1
|
2017-01-17 11:58:00 +00:00
|
|
|
[init -> test-reconstructible] reconstruct member with Object 2 as reference
|
2016-12-01 16:37:08 +00:00
|
|
|
[init -> test-reconstructible] destruct Member_with_reference
|
|
|
|
[init -> test-reconstructible] construct Member_with_reference
|
2017-01-17 11:58:00 +00:00
|
|
|
[init -> test-reconstructible] call method on member
|
2016-12-01 16:37:08 +00:00
|
|
|
[init -> test-reconstructible] const method called on Object 2
|
2017-01-17 11:58:00 +00:00
|
|
|
[init -> test-reconstructible] destruct member
|
2016-12-01 16:37:08 +00:00
|
|
|
[init -> test-reconstructible] destruct Member_with_reference
|
2017-01-17 11:58:00 +00:00
|
|
|
[init -> test-reconstructible] try to call method on member, catch exception
|
2016-12-01 16:37:08 +00:00
|
|
|
[init -> test-reconstructible] got exception, as expected
|
2017-01-17 11:58:00 +00:00
|
|
|
[init -> test-reconstructible] destruct Compound and Objects 1 and 2
|
2016-12-01 16:37:08 +00:00
|
|
|
[init -> test-reconstructible] destruct Compound
|
|
|
|
[init -> test-reconstructible] destruct Member_with_reference
|
|
|
|
[init -> test-reconstructible] destruct Object 2
|
|
|
|
[init -> test-reconstructible] destruct Object 1
|
2017-01-17 11:58:00 +00:00
|
|
|
[init -> test-reconstructible] construct Throwing object
|
2016-12-01 16:37:08 +00:00
|
|
|
[init -> test-reconstructible] construct Throwing -> don't throw
|
|
|
|
[init -> test-reconstructible] destruct Throwing
|
|
|
|
[init -> test-reconstructible] construct Throwing -> throw exception
|
2017-01-17 11:58:00 +00:00
|
|
|
[init -> test-reconstructible] got exception, as expected
|
|
|
|
[init -> test-reconstructible] --- Reconstructible utility test finished ---
|
2016-12-01 16:37:08 +00:00
|
|
|
}
|
|
|
|
|