# check that errors in nested functions are not lost on return
# bugzilla 6529

set test "error_fn"

foreach runtime [get_runtime_list] {
    if {$runtime != ""} {
	stap_run $srcdir/$subdir/$test.stp no_load ".*synthetic error.*" \
	    --runtime=$runtime
    } else {
	stap_run $srcdir/$subdir/$test.stp no_load ".*synthetic error.*"
    }
}

