summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/div0.exp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/systemtap.base/div0.exp')
-rw-r--r--testsuite/systemtap.base/div0.exp10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/systemtap.base/div0.exp b/testsuite/systemtap.base/div0.exp
new file mode 100644
index 00000000..169ded56
--- /dev/null
+++ b/testsuite/systemtap.base/div0.exp
@@ -0,0 +1,10 @@
+# Simple function to test that systemtap divide by 0 doesn't kill the machine
+# FIXME correct the output check
+
+load_lib "stap_run.exp"
+
+set test "div0"
+
+set output_string "(.*)division by 0 near(.*)"
+
+stap_run $srcdir/$subdir/$test.stp no_load $output_string