Re: psql - improve test coverage from 41% to 88% - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: psql - improve test coverage from 41% to 88%
Date
Msg-id 87087237-30f2-f5d5-4ceb-79007508bb99@2ndQuadrant.com
Whole thread Raw
In response to Re: psql - improve test coverage from 41% to 88%  (Fabien COELHO <coelho@cri.ensmp.fr>)
List pgsql-hackers
On 8/3/20 3:34 PM, Fabien COELHO wrote:
>
>
> I'm quite lost about Expect portability discussion wrt windows, it is
> unclear to me whether it is expected to work there or not.



Sorry if I was unclear. Expect will not work on Windows. Nor will use of
IO::Pty  or IO::Tty, which are what Expect uses under the hood. So use
of any of that needs to be done just as it is done on
010_tab_completion.pl, i.e.


    eval { require IO::Pty; };
    if ($@)
    {
        plan skip_all => 'IO::Pty is needed to run this test';
    }


cheers


andrew


-- 
Andrew Dunstan                https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




pgsql-hackers by date:

Previous
From: David Rowley
Date:
Subject: Re: Hybrid Hash/Nested Loop joins and caching results from subplans
Next
From: Peter Geoghegan
Date:
Subject: Re: Amcheck: do rightlink verification with lock coupling