aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/funcs_new.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2021-06-25 06:52:52 +0900
committerMichael Paquier <michael@paquier.xyz>2021-06-25 06:52:52 +0900
commit79ff96aa9d9a76cf6fd5ade9a25efb488ecd89ab (patch)
treefb168596dcbaac8e6d2c6d79302b0aa0f572cf53 /src/tutorial/funcs_new.c
parent7a48dfbb88a748c45063f46f5fa96e9a9e0fd712 (diff)
downloadpostgresql-79ff96aa9d9a76cf6fd5ade9a25efb488ecd89ab.tar.gz
postgresql-79ff96aa9d9a76cf6fd5ade9a25efb488ecd89ab.zip
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
Diffstat (limited to 'src/tutorial/funcs_new.c')
0 files changed, 0 insertions, 0 deletions