summaryrefslogtreecommitdiff
path: root/src/bin/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/scripts')
-rw-r--r--src/bin/scripts/t/010_clusterdb.pl4
-rw-r--r--src/bin/scripts/t/050_dropdb.pl4
-rw-r--r--src/bin/scripts/t/070_dropuser.pl4
3 files changed, 9 insertions, 3 deletions
diff --git a/src/bin/scripts/t/010_clusterdb.pl b/src/bin/scripts/t/010_clusterdb.pl
index a4e4d468578..65a32b6c4c5 100644
--- a/src/bin/scripts/t/010_clusterdb.pl
+++ b/src/bin/scripts/t/010_clusterdb.pl
@@ -21,7 +21,9 @@ $node->issues_sql_like(
qr/statement: CLUSTER;/,
'SQL CLUSTER run');
-$node->command_fails([ 'clusterdb', '--table' => 'nonexistent' ],
+$node->command_fails_like(
+ [ 'clusterdb', '--table' => 'nonexistent' ],
+ qr/relation "nonexistent" does not exist/,
'fails with nonexistent table');
$node->safe_psql('postgres',
diff --git a/src/bin/scripts/t/050_dropdb.pl b/src/bin/scripts/t/050_dropdb.pl
index 9db0345119f..d0bf4924ce4 100644
--- a/src/bin/scripts/t/050_dropdb.pl
+++ b/src/bin/scripts/t/050_dropdb.pl
@@ -28,7 +28,9 @@ $node->issues_sql_like(
qr/statement: DROP DATABASE foobar2 WITH \(FORCE\);/,
'SQL DROP DATABASE (FORCE) run');
-$node->command_fails([ 'dropdb', 'nonexistent' ],
+$node->command_fails_like(
+ [ 'dropdb', 'nonexistent' ],
+ qr/database "nonexistent" does not exist/,
'fails with nonexistent database');
# check that invalid database can be dropped with dropdb
diff --git a/src/bin/scripts/t/070_dropuser.pl b/src/bin/scripts/t/070_dropuser.pl
index 2c432fbdb63..5f100978446 100644
--- a/src/bin/scripts/t/070_dropuser.pl
+++ b/src/bin/scripts/t/070_dropuser.pl
@@ -22,7 +22,9 @@ $node->issues_sql_like(
qr/statement: DROP ROLE regress_foobar1/,
'SQL DROP ROLE run');
-$node->command_fails([ 'dropuser', 'regress_nonexistent' ],
+$node->command_fails_like(
+ [ 'dropuser', 'regress_nonexistent' ],
+ qr/role "regress_nonexistent" does not exist/,
'fails with nonexistent user');
done_testing();