pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add more regression tests for pg_ls_dir()
Date: Tue, 15 Mar 2022 01:52:54 +0000
Message-ID: <E1nTwMn-0006Iw-Up@gemulon.postgresql.org> (raw)

Add more regression tests for pg_ls_dir()

This system function was being triggered once in the main regression
test suite to check its SRF configuration, and more in other test
modules but nothing checked the behavior of the options missing_ok and
include_dot_dirs.  This commit adds some tests for both options, to
avoid mistakes if this code is manipulated in the future.

Extracted from a larger patch by the same author, with a few tweaks by
me.

Author: Justin Pryzby
Discussion: https://postgr.es/m/20191227170220.GE12890@telsasoft.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ff8b37ba801073b4506f670317141785bab9f4d8

Modified Files
--------------
src/test/regress/expected/misc_functions.out | 23 +++++++++++++++++++++++
src/test/regress/sql/misc_functions.sql      |  8 ++++++++
2 files changed, 31 insertions(+)



Message-ID: <E1nTwMn-0006Iw-Up@gemulon.postgresql.org>
Permalink:  ../E1nTwMn-0006Iw-Up@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1nTwMn-0006Iw-Up@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz
  Subject: Re: pgsql: Add more regression tests for pg_ls_dir()
  In-Reply-To: <E1nTwMn-0006Iw-Up@gemulon.postgresql.org>
  References: <E1nTwMn-0006Iw-Up@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox