git.postgresql.org Git - postgresql.git/commit
2021年6月24日 21:52:36 +0000 (06:52 +0900)
2021年6月24日 21:52:36 +0000 (06:52 +0900)
commit c13585fe9e55813cf9feac67fe7b65d3a78fff92
Fix pattern matching logic for logs in TAP tests of pgbench
The logic checking for the format of per-thread logs used grep() with
directly "$re", which would cause the test to consider all the logs as
a match without caring about their format at all. Using "/$re/" makes
grep() perform a regex test, which is what we want here.
While on it, improve some of the tests to be more picky with the
patterns expected and add more comments to describe the tests.
Issue discovered while digging into a separate patch.
Author: Fabien Coelho, Michael Paquier
Discussion: https://postgr.es/m/YNPsPAUoVDCpPOGk@paquier.xyz
Backpatch-through: 11
This is the main PostgreSQL git repository.
RSS
Atom