From 0ff7a2c2ad04404aeb1f45e1ae5d67dc91b575ee Mon Sep 17 00:00:00 2001
From: Tom Lane <tgl@sss.pgh.pa.us>
Date: Sat, 14 May 2005 17:55:22 +0000
Subject: Convert the existing regression test scripts for the various optional
 PLs to use the standard pg_regress infrastructure.  No changes in the tests
 themselves.  Andrew Dunstan

---
 src/pl/plpython/sql/plpython_error.sql | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 src/pl/plpython/sql/plpython_error.sql

(limited to 'src/pl/plpython/sql/plpython_error.sql')

diff --git a/src/pl/plpython/sql/plpython_error.sql b/src/pl/plpython/sql/plpython_error.sql
new file mode 100644
index 0000000000..f1939eb8ff
--- /dev/null
+++ b/src/pl/plpython/sql/plpython_error.sql
@@ -0,0 +1,13 @@
+
+-- test error handling, i forgot to restore Warn_restart in
+-- the trigger handler once. the errors and subsequent core dump were
+-- interesting.
+
+SELECT invalid_type_uncaught('rick');
+SELECT invalid_type_caught('rick');
+SELECT invalid_type_reraised('rick');
+SELECT valid_type('rick');
+
+-- Security sandbox tests
+SELECT write_file('/tmp/plpython','Only trusted users should be able to do this!');
+SELECT read_file('/tmp/plpython');
-- 
cgit v1.2.1

