Replace (stat(<file>))[7] in TAP tests with -s

Bertrand Drouvot <bertranddrouvot.pg@gmail.com>

From: "Drouvot, Bertrand" <bertranddrouvot.pg@gmail.com>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Cc: Michael Paquier <michael@paquier.xyz>
Date: 2023-10-02T09:35:45Z
Lists: pgsql-hackers

Attachments

Hi hackers,

Please find attached a tiny patch to $SUBJECT.

It:

  - provides more consistency to the way we get files size in TAP tests
  - seems more elegant that relying on a hardcoded result position

Regards,

-- 
Bertrand Drouvot
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com

Commits

  1. Replace use of stat()[7] by -s switch in TAP tests to retrieve file size