We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 654242f commit 1c4e88eCopy full SHA for 1c4e88e
src/bin/pg_ctl/t/004_logrotate.pl
@@ -3,7 +3,7 @@
3
4
use PostgresNode;
5
use TestLib;
6
-use Test::More tests => 4;
+use Test::More tests => 5;
7
use Time::HiRes qw(usleep);
8
9
# Set up node with logging collector
@@ -47,6 +47,10 @@
47
48
like($first_logfile, qr/division by zero/, 'found expected log file content');
49
50
+# While we're at it, test pg_current_logfile() function
51
+is($node->safe_psql('postgres', "SELECT pg_current_logfile('stderr')"),
52
+ $lfname, 'pg_current_logfile() gives correct answer');
53
+
54
# Sleep 2 seconds and ask for log rotation; this should result in
55
# output into a different log file name.
56
sleep(2);
0 commit comments