summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/error_fn.stp
diff options
context:
space:
mode:
authorJosh Stone <joshua.i.stone@intel.com>2008-05-28 13:53:06 -0700
committerJosh Stone <joshua.i.stone@intel.com>2008-05-28 13:59:40 -0700
commit90c278bdf839fbbb5485a1c306ac400efcced388 (patch)
tree18c0596f7986703f7ca7b0cbf6980a7e954425a8 /testsuite/systemtap.base/error_fn.stp
parent2285f446112f64884da490fc66144b19f6cb8504 (diff)
downloadsystemtap-steved-90c278bdf839fbbb5485a1c306ac400efcced388.tar.gz
systemtap-steved-90c278bdf839fbbb5485a1c306ac400efcced388.tar.xz
systemtap-steved-90c278bdf839fbbb5485a1c306ac400efcced388.zip
Check that errors in nested functions are not lost on return
Currently this test fails, as noted in bugzilla 6529.
Diffstat (limited to 'testsuite/systemtap.base/error_fn.stp')
-rw-r--r--testsuite/systemtap.base/error_fn.stp17
1 files changed, 17 insertions, 0 deletions
diff --git a/testsuite/systemtap.base/error_fn.stp b/testsuite/systemtap.base/error_fn.stp
new file mode 100644
index 00000000..2e68026f
--- /dev/null
+++ b/testsuite/systemtap.base/error_fn.stp
@@ -0,0 +1,17 @@
+probe begin {
+ println("systemtap starting probe")
+ println("systemtap ending probe")
+}
+
+function generate_error:long() {
+ error("synthetic error")
+ return 1
+}
+
+function compute:long() {
+ return generate_error()
+}
+
+probe end {
+ compute()
+}