2013-01-03 19:45:43 +00:00
|
|
|
#
|
|
|
|
# \brief Test reflection of segmentation faults to the user land
|
|
|
|
# \author Norman Feske
|
|
|
|
# \date 2012-11-01
|
|
|
|
#
|
|
|
|
|
2013-01-04 15:10:28 +00:00
|
|
|
if {[have_spec pistachio]} {
|
|
|
|
puts "Pistachio is unsupported (see https://github.com/genodelabs/genode/issues/16)"
|
|
|
|
exit 0
|
|
|
|
}
|
2013-05-08 07:38:32 +00:00
|
|
|
if {[have_spec fiasco]} {
|
|
|
|
puts "Fiasco is unsupported (see run script for details)"
|
|
|
|
#
|
|
|
|
# The L4/Fiasco kernel has known problems with the destruction of threads
|
|
|
|
# that are currently participating in IPC (the "red-thread issue"). The
|
2015-06-17 14:44:45 +00:00
|
|
|
# fault-detection test reliably triggers the problem. Since the development
|
|
|
|
# of the kernel has been stopped, however, this issue is expected to remain
|
2013-05-08 07:38:32 +00:00
|
|
|
# unresolved. Newer kernels such as Fiasco.OC do not have the problem.
|
|
|
|
#
|
|
|
|
exit 0
|
|
|
|
}
|
2013-01-04 15:10:28 +00:00
|
|
|
|
2013-01-03 19:45:43 +00:00
|
|
|
#
|
|
|
|
# Build
|
|
|
|
#
|
|
|
|
|
2015-06-17 14:44:45 +00:00
|
|
|
build { core init server/loader test/fault_detection test/segfault }
|
2013-01-03 19:45:43 +00:00
|
|
|
|
|
|
|
create_boot_directory
|
|
|
|
|
|
|
|
#
|
|
|
|
# Generate config
|
|
|
|
#
|
|
|
|
|
|
|
|
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> <parent/> <any-child/> </any-service>
|
|
|
|
</default-route>
|
2013-01-04 14:24:11 +00:00
|
|
|
<start name="loader">
|
|
|
|
<resource name="RAM" quantum="10M"/>
|
|
|
|
<provides> <service name="Loader"/> </provides>
|
|
|
|
</start>
|
2015-06-17 14:44:45 +00:00
|
|
|
<start name="test-fault_detection">
|
2013-01-03 19:45:43 +00:00
|
|
|
<resource name="RAM" quantum="10M"/>
|
|
|
|
</start>
|
|
|
|
</config>
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# Boot modules
|
|
|
|
#
|
|
|
|
|
|
|
|
# generic modules
|
2015-06-17 14:44:45 +00:00
|
|
|
set boot_modules { core init loader test-fault_detection test-segfault }
|
2013-01-03 19:45:43 +00:00
|
|
|
|
|
|
|
build_boot_image $boot_modules
|
|
|
|
|
|
|
|
#
|
|
|
|
# Execute test case
|
|
|
|
#
|
|
|
|
|
2013-01-04 14:24:11 +00:00
|
|
|
append qemu_args "-nographic -m 64"
|
|
|
|
|
2015-06-17 14:44:45 +00:00
|
|
|
run_genode_until "--- finished fault_detection test ---.*\n" 30
|