summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/aborter2.ur7
-rw-r--r--tests/aborter2.urp5
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/aborter2.ur b/tests/aborter2.ur
new file mode 100644
index 00000000..a7270ba1
--- /dev/null
+++ b/tests/aborter2.ur
@@ -0,0 +1,7 @@
+table t : { X : int }
+
+fun main () : transaction page =
+ v <- query (SELECT * FROM t)
+ (fn r (_ : int) => return (error <xml>Shot down!</xml>))
+ 0;
+ return <xml>Result: {[v]}</xml>
diff --git a/tests/aborter2.urp b/tests/aborter2.urp
new file mode 100644
index 00000000..edc6c7da
--- /dev/null
+++ b/tests/aborter2.urp
@@ -0,0 +1,5 @@
+debug
+database dbname=aborter
+sql aborter2.sql
+
+aborter2