Content-Length: 257611 | pFad | http://github.com/postgrespro/postgres/commit/c1a95425780ef8e72c2f65504a7e90bcb223ca4a

26 Fix improper example of using psql() function in TAP tests documentat… · postgrespro/postgres@c1a9542 · GitHub
Skip to content

Commit c1a9542

Browse files
committed
Fix improper example of using psql() function in TAP tests documentation.
In an example of TAP test scripts, there is the test checking whether the result of the query is expected or not. But, in previous example, the exit code of psql instead of the query result was checked unexpectedly. Author: Ildar Musin
1 parent 43c2c40 commit c1a9542

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/perl/README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ against them and evaluate the results. For example:
4141
$node->init;
4242
$node->start;
4343

44-
my $ret = $node->psql('postgres', 'SELECT 1');
44+
my $ret = $node->safe_psql('postgres', 'SELECT 1');
4545
is($ret, '1', 'SELECT 1 returns 1');
4646

4747
$node->stop('fast');

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/c1a95425780ef8e72c2f65504a7e90bcb223ca4a

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy