forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit44e73a4
committed
Fix regression tests of unaccent to work without UTF8 support
The tests of unaccent rely on UTF8 characters, and unlike any other testsuite in the tree (fuzzystrmatch, citext, hstore, etc.), they would failif run on a database that does not support UTF8 encoding.This commit fixes the tests of unaccent so as these are skipped when runon a database without UTF8 support, using the same method as the othertest suits based on \if, getdatabaseencoding() and an alternate outputfile.This has been broken for a long time, but nobody has complained aboutthat either, so no backpatch is done. This can be reproduced withsomething like REGRESS_OPTS="--no-locale --encoding=sql_ascii", forinstance. To defend against that, this module's Makefile andmeson.build enforced a UTF8 encoding without locales, but it did notoffer protection for options given by REGRESS_OPTS. This switch makesthis regression test suite more consistent with all the others, aswell.Reviewed-by: Peter EisentrautDiscussion:https://postgr.es/m/ZIq1HUnIV2ksW85x@paquier.xyz1 parent72df1d3 commit44e73a4
File tree
5 files changed
+28
-15
lines changed- contrib/unaccent
- expected
- sql
5 files changed
+28
-15
lines changedLines changed: 0 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 |
| - | |
16 |
| - | |
17 |
| - | |
18 |
| - | |
19 | 15 |
| |
20 | 16 |
| |
21 | 17 |
| |
|
Lines changed: 9 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
1 | 10 |
| |
2 |
| - | |
3 |
| - | |
4 |
| - | |
5 |
| - | |
6 |
| - | |
7 |
| - | |
8 |
| - | |
9 | 11 |
| |
10 | 12 |
| |
11 | 13 |
| |
|
Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + |
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
40 |
| - | |
41 | 40 |
| |
42 | 41 |
|
Lines changed: 11 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
2 | 11 |
| |
3 |
| - | |
4 |
| - | |
| 12 | + | |
5 | 13 |
| |
6 | 14 |
| |
7 | 15 |
| |
|
0 commit comments
Comments
(0)