2014-01-23 09:26:04 +00:00
|
|
|
build "core init test/new_delete"
|
|
|
|
|
|
|
|
create_boot_directory
|
|
|
|
|
|
|
|
install_config {
|
|
|
|
<config>
|
|
|
|
<parent-provides>
|
|
|
|
<service name="LOG"/>
|
2017-01-18 16:10:07 +00:00
|
|
|
<service name="ROM"/>
|
|
|
|
<service name="CPU"/>
|
|
|
|
<service name="PD"/>
|
2014-01-23 09:26:04 +00:00
|
|
|
</parent-provides>
|
|
|
|
<default-route>
|
|
|
|
<any-service> <parent/> </any-service>
|
|
|
|
</default-route>
|
2017-05-07 20:36:11 +00:00
|
|
|
<default caps="100"/>
|
2014-01-23 09:26:04 +00:00
|
|
|
<start name="test-new_delete">
|
|
|
|
<resource name="RAM" quantum="10M"/>
|
|
|
|
</start>
|
|
|
|
</config>
|
|
|
|
}
|
|
|
|
|
2016-12-01 18:00:11 +00:00
|
|
|
build_boot_image "core ld.lib.so init test-new_delete"
|
2014-01-23 09:26:04 +00:00
|
|
|
|
2017-05-23 13:05:55 +00:00
|
|
|
append qemu_args "-nographic "
|
2014-01-23 09:26:04 +00:00
|
|
|
|
2017-08-14 06:19:24 +00:00
|
|
|
run_genode_until "Test done.*\n" 20
|
2014-01-23 09:26:04 +00:00
|
|
|
|
|
|
|
grep_output {^\[init -> test-new_delete\]}
|
|
|
|
|
|
|
|
compare_output_to {
|
|
|
|
[init -> test-new_delete] Allocator::alloc()
|
|
|
|
[init -> test-new_delete] A
|
|
|
|
[init -> test-new_delete] C
|
|
|
|
[init -> test-new_delete] B
|
|
|
|
[init -> test-new_delete] D
|
|
|
|
[init -> test-new_delete] E
|
|
|
|
[init -> test-new_delete] ~E
|
|
|
|
[init -> test-new_delete] ~D
|
|
|
|
[init -> test-new_delete] ~B
|
|
|
|
[init -> test-new_delete] ~C
|
|
|
|
[init -> test-new_delete] ~A
|
|
|
|
[init -> test-new_delete] Allocator::free()
|
|
|
|
[init -> test-new_delete] Allocator::alloc()
|
|
|
|
[init -> test-new_delete] A
|
|
|
|
[init -> test-new_delete] C
|
|
|
|
[init -> test-new_delete] B
|
|
|
|
[init -> test-new_delete] D
|
|
|
|
[init -> test-new_delete] E
|
|
|
|
[init -> test-new_delete] throw exception
|
|
|
|
[init -> test-new_delete] ~D
|
|
|
|
[init -> test-new_delete] ~B
|
|
|
|
[init -> test-new_delete] ~C
|
|
|
|
[init -> test-new_delete] ~A
|
2016-11-23 12:05:28 +00:00
|
|
|
[init -> test-new_delete] Allocator::free()
|
2014-01-23 09:26:04 +00:00
|
|
|
[init -> test-new_delete] exception caught
|
|
|
|
[init -> test-new_delete] Allocator::alloc()
|
|
|
|
[init -> test-new_delete] A
|
|
|
|
[init -> test-new_delete] C
|
|
|
|
[init -> test-new_delete] B
|
|
|
|
[init -> test-new_delete] D
|
|
|
|
[init -> test-new_delete] E
|
|
|
|
[init -> test-new_delete] ~E
|
|
|
|
[init -> test-new_delete] ~D
|
|
|
|
[init -> test-new_delete] ~B
|
|
|
|
[init -> test-new_delete] ~C
|
|
|
|
[init -> test-new_delete] ~A
|
|
|
|
[init -> test-new_delete] Allocator::free()
|
|
|
|
[init -> test-new_delete] Allocator::alloc()
|
|
|
|
[init -> test-new_delete] A
|
|
|
|
[init -> test-new_delete] C
|
|
|
|
[init -> test-new_delete] B
|
|
|
|
[init -> test-new_delete] D
|
|
|
|
[init -> test-new_delete] E
|
|
|
|
[init -> test-new_delete] throw exception
|
|
|
|
[init -> test-new_delete] ~D
|
|
|
|
[init -> test-new_delete] ~B
|
|
|
|
[init -> test-new_delete] ~C
|
|
|
|
[init -> test-new_delete] ~A
|
2016-11-23 12:05:28 +00:00
|
|
|
[init -> test-new_delete] Allocator::free()
|
2014-01-23 09:26:04 +00:00
|
|
|
[init -> test-new_delete] exception caught
|
|
|
|
}
|