Consistently use "superuser" instead of "super user"
[pgsql.git] / src / bin / pg_test_fsync / t / 001_basic.pl
blobc0d0effd92de877cee8e353a958ac35d2d30fb5f
2 # Copyright (c) 2021, PostgreSQL Global Development Group
4 use strict;
5 use warnings;
7 use Config;
8 use TestLib;
9 use Test::More tests => 12;
11 #########################################
12 # Basic checks
14 program_help_ok('pg_test_fsync');
15 program_version_ok('pg_test_fsync');
16 program_options_handling_ok('pg_test_fsync');
18 #########################################
19 # Test invalid option combinations
21 command_fails_like(
22 [ 'pg_test_fsync', '--secs-per-test', 'a' ],
23 qr/\Qpg_test_fsync: error: invalid argument for option --secs-per-test\E/,
24 'pg_test_fsync: invalid argument for option --secs-per-test');
25 command_fails_like(
26 [ 'pg_test_fsync', '--secs-per-test', '0' ],
27 qr/\Qpg_test_fsync: error: --secs-per-test must be in range 1..4294967295\E/,
28 'pg_test_fsync: --secs-per-test must be in range');