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

From: "Drouvot, Bertrand" <bertranddrouvot(dot)pg(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Cc: Michael Paquier <michael(at)paquier(dot)xyz>
Subject: Replace (stat(<file>))[7] in TAP tests with -s
Date: 2023-10-02 09:35:45
Message-ID: b2020df7-d0fc-4ea5-b2a9-7efc6d36b2ac@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

Attachment Content-Type Size
v1-0001-Be-consistent-in-TAP-tests-for-the-way-we-get-fil.patch text/plain 3.4 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Laurenz Albe 2023-10-02 10:02:17 Re: Trigger violates foreign key constraint
Previous Message Heikki Linnakangas 2023-10-02 09:19:29 Re: Show various offset arrays for heap WAL records