mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-04 10:10:59 +00:00
e6f6defaca
The test application tries to print a message using init's own LOG session without permission. This patch fixes #106.
40 lines
825 B
Plaintext
40 lines
825 B
Plaintext
build "core init test/cap_integrity"
|
|
|
|
create_boot_directory
|
|
|
|
install_config {
|
|
<config>
|
|
<parent-provides>
|
|
<service name="ROM"/>
|
|
<service name="RAM"/>
|
|
<service name="CPU"/>
|
|
<service name="RM"/>
|
|
<service name="CAP"/>
|
|
<service name="PD"/>
|
|
<service name="SIGNAL"/>
|
|
<service name="LOG"/>
|
|
</parent-provides>
|
|
<default-route>
|
|
<any-service> <parent/> </any-service>
|
|
</default-route>
|
|
<start name="test-cap_integrity">
|
|
<resource name="RAM" quantum="10M"/>
|
|
</start>
|
|
</config>
|
|
}
|
|
|
|
build_boot_image "core init test-cap_integrity"
|
|
|
|
append qemu_args "-nographic -m 64"
|
|
|
|
# increase expect buffer size, since there might be many log messages
|
|
match_max -d 100000
|
|
|
|
run_genode_until {child exited with exit value 0.*} 60
|
|
|
|
if {[regexp {\[init\] test message} $output]} {
|
|
exit -1
|
|
}
|
|
|
|
puts "Test succeeded"
|