forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9ffe227
committed
Adjust createdb TAP tests to work on recent OpenBSD.
We found last February that the error-case tests added by commit008cf04 failed on OpenBSD, because that platform doesn't reallycheck locale names. At the time it seemed that that was only an issuefor LC_CTYPE, but testing on a more recent version of OpenBSD showsthat it's now equally lax about LC_COLLATE.Rather than dropping the LC_COLLATE test too, put back LC_CTYPE(revertingc4b0edb), and adjust these tests to accept the differenterror message that we get if setlocale() doesn't reject a bogus localename. The point of these tests is not really what the backend doeswith the locale name, but to show that createdb quotes funny localenames safely; so we're not losing test reliability this way.Back-patch as appropriate.Discussion:https://postgr.es/m/231373.1610058324@sss.pgh.pa.us1 parentb8d0cda commit9ffe227
1 file changed
+11
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
0 commit comments
Comments
(0)