diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2006-07-18 00:32:42 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2006-07-18 00:32:42 +0000 |
| commit | 84e60427259bed6357a6d4559eabeaae11e29a9f (patch) | |
| tree | 2c20847a8556b4b89ed0c9d8282b15880f4e639e /src/test/regress/expected | |
| parent | 2256d299bba635cc48b94c85fbcf512029fa1314 (diff) | |
| download | postgresql-84e60427259bed6357a6d4559eabeaae11e29a9f.tar.gz | |
Make pg_regress a tad simpler and more general-purpose by removing its
code to forcibly drop regressuser[1-4] and regressgroup[1-2]. Instead,
let the privileges.sql test do that for itself (this is made easy by
the recent addition of DROP ROLE IF EXISTS). Per a recent patch proposed
by Joachim Wieland --- the rest of his patch is superseded by the
rewrite into C, but this is a good idea we should adopt.
Diffstat (limited to 'src/test/regress/expected')
| -rw-r--r-- | src/test/regress/expected/privileges.out | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/regress/expected/privileges.out b/src/test/regress/expected/privileges.out index a18116a289..201e8a11d3 100644 --- a/src/test/regress/expected/privileges.out +++ b/src/test/regress/expected/privileges.out @@ -1,6 +1,17 @@ -- -- Test access privileges -- +-- Clean up in case a prior regression run failed +-- Suppress NOTICE messages when users/groups don't exist +SET client_min_messages TO 'error'; +DROP ROLE IF EXISTS regressgroup1; +DROP ROLE IF EXISTS regressgroup2; +DROP ROLE IF EXISTS regressuser1; +DROP ROLE IF EXISTS regressuser2; +DROP ROLE IF EXISTS regressuser3; +DROP ROLE IF EXISTS regressuser4; +RESET client_min_messages; +-- test proper begins here CREATE USER regressuser1; CREATE USER regressuser2; CREATE USER regressuser3; |
