Add more regression tests for pg_ls_dir()
authorMichael Paquier <michael@paquier.xyz>
Tue, 15 Mar 2022 01:52:19 +0000 (10:52 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 15 Mar 2022 01:52:19 +0000 (10:52 +0900)
commitff8b37ba801073b4506f670317141785bab9f4d8
tree6b0063420d40c3a37dbc732196a7c9c34686c4ca
parentc6f2f01611d4f2c412e92eb7893f76fa590818e8
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
src/test/regress/expected/misc_functions.out
src/test/regress/sql/misc_functions.sql