mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-24 07:46:42 +00:00
8bd0efced6
Adapted launchpad and also the rm_fault and resource_request tests. Issue #2407
85 lines
2.3 KiB
Plaintext
85 lines
2.3 KiB
Plaintext
build "core init test/new_delete"
|
|
|
|
create_boot_directory
|
|
|
|
install_config {
|
|
<config>
|
|
<parent-provides>
|
|
<service name="LOG"/>
|
|
<service name="ROM"/>
|
|
<service name="CPU"/>
|
|
<service name="PD"/>
|
|
</parent-provides>
|
|
<default-route>
|
|
<any-service> <parent/> </any-service>
|
|
</default-route>
|
|
<default caps="100"/>
|
|
<start name="test-new_delete">
|
|
<resource name="RAM" quantum="10M"/>
|
|
</start>
|
|
</config>
|
|
}
|
|
|
|
build_boot_image "core ld.lib.so init test-new_delete"
|
|
|
|
append qemu_args "-nographic "
|
|
|
|
run_genode_until "Test done.*\n" 15
|
|
|
|
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
|
|
[init -> test-new_delete] Allocator::free()
|
|
[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
|
|
[init -> test-new_delete] Allocator::free()
|
|
[init -> test-new_delete] exception caught
|
|
}
|
|
|
|
#puts "Test succeeded"
|