Update alternative expected output file.
authorHeikki Linnakangas <[email protected]>
Wed, 3 Nov 2021 17:38:17 +0000 (19:38 +0200)
committerHeikki Linnakangas <[email protected]>
Wed, 3 Nov 2021 17:41:49 +0000 (19:41 +0200)
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

src/test/regress/output/largeobject_1.source

index 73af5dacfebb0de922b21596d3aa0edf1ebe55b2..725a3994aaf6baf36e2f92a6d2eec4a3d32a48ba 100644 (file)
@@ -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));