]> granicus.if.org Git - postgresql/commit
Fix pgbench TAP test failure with funky file names (redux)
authorAndrew Dunstan <andrew@dunslane.net>
Tue, 5 Mar 2019 15:46:21 +0000 (10:46 -0500)
committerAndrew Dunstan <andrew@dunslane.net>
Tue, 5 Mar 2019 15:50:35 +0000 (10:50 -0500)
commitf1b864ee6774e86ad4c6a5423722c354c7f706fd
tree8c9ada74934e4b8aef554c2394432a17113847f8
parent8722c4daccf83411996aa5a18a3eca4ec84b7d41
Fix pgbench TAP test failure with funky file names (redux)

This test fails if the containing directory contains a funny character
such as a space or some perl metacharacter. To avoid that, we check for
files names using readdir and a regex, rather than using a glob pattern.

Discussion: https://postgr.es/m/CAM6_UM6dGdU39PKAC24T+HD9ouy0jLN9vH6163K8QEEzr__iZw@mail.gmail.com

Author: Fabien COELHO
Reviewed-by: Raúl Marín Rodríguez
src/bin/pgbench/t/001_pgbench_with_server.pl