summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2021-11-03 19:38:17 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2021-11-03 19:41:49 +0200
commit71aeaf245b237bc7c3cfceb4bbbe7a8489da82fb (patch)
treeb911b68c94f4d3d414b2a910cf44c3cb267a1b32
parent8f32afee0179b2050bb1f84ba16fd1d4fba9a3b8 (diff)
downloadpostgresql-71aeaf245b237bc7c3cfceb4bbbe7a8489da82fb.tar.gz
Update alternative expected output file.
Previous commit added a test to 'largeobject', but neglected the alternative expected output file 'largeobject_1.source'. Per failure on buildfarm animal 'hamerkop'. Discussion: https://www.postgresql.org/message-id/DBA08346-9962-4706-92D1-230EE5201C10@yesql.se
-rw-r--r--src/test/regress/output/largeobject_1.source11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/regress/output/largeobject_1.source b/src/test/regress/output/largeobject_1.source
index 73af5dacfe..725a3994aa 100644
--- a/src/test/regress/output/largeobject_1.source
+++ b/src/test/regress/output/largeobject_1.source
@@ -161,6 +161,17 @@ SELECT lo_open(loid, x'40000'::int) from lotest_stash_values;
(1 row)
ABORT;
+DO $$
+DECLARE
+ loid oid;
+BEGIN
+ SELECT tbl.loid INTO loid FROM lotest_stash_values tbl;
+ PERFORM lo_export(loid, '@abs_builddir@/results/invalid/path');
+EXCEPTION
+ WHEN UNDEFINED_FILE THEN RAISE NOTICE 'could not open file, as expected';
+END;
+$$;
+NOTICE: could not open file, as expected
-- Test truncation.
BEGIN;
UPDATE lotest_stash_values SET fd=lo_open(loid, CAST(x'20000' | x'40000' AS integer));