Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit72a3ebf

Browse files
committed
Enable routine running of regex.linux.utf8 regression test.
Up to now this has just sat there as a test you could invoke viaEXTRA_TESTS, which of course nobody does. I'm feeling encouragedbecausec2e8bd2 hasn't yet broke anything, so let's try making thisrun with a suitable guard condition (similar to collate.linux.utf8).
1 parentf456634 commit72a3ebf

File tree

4 files changed

+31
-5
lines changed

4 files changed

+31
-5
lines changed

‎src/test/regress/expected/regex.linux.utf8.out‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
/*
2-
* This test is for Linux/glibc systemsand others that implement proper
3-
*locale classification of Unicode characters with highcode values.
2+
* This test is for Linux/glibc systems(conceivably it could be run on
3+
*others that implement proper classification of highUnicode characters).
44
* It must be run in a database with UTF8 encoding and a Unicode-aware locale.
55
*/
6+
SELECT getdatabaseencoding() <> 'UTF8' OR
7+
current_setting('lc_ctype') = 'C' OR
8+
version() !~ 'linux-gnu'
9+
AS skip_test \gset
10+
\if :skip_test
11+
\quit
12+
\endif
613
SET client_encoding TO UTF8;
714
--
815
-- Test the "high colormap" logic with single characters and ranges that
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*
2+
* This test is for Linux/glibc systems (conceivably it could be run on
3+
* others that implement proper classification of high Unicode characters).
4+
* It must be run in a database with UTF8 encoding and a Unicode-aware locale.
5+
*/
6+
SELECT getdatabaseencoding() <> 'UTF8' OR
7+
current_setting('lc_ctype') = 'C' OR
8+
version() !~ 'linux-gnu'
9+
AS skip_test \gset
10+
\if :skip_test
11+
\quit

‎src/test/regress/parallel_schedule‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ test: create_table_like alter_generic alter_operator misc async dbsize misc_func
9494
# rules cannot run concurrently with any test that creates
9595
# a view or rule in the public schema
9696
# collate.*.utf8 tests cannot be run in parallel with each other
97-
test: rules psql psql_crosstab amutils stats_ext collate.linux.utf8
97+
test: rules psql psql_crosstab amutils stats_ext collate.linux.utf8 regex.linux.utf8
9898

9999
# run by itself so it can run parallel workers
100100
test: select_parallel

‎src/test/regress/sql/regex.linux.utf8.sql‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
/*
2-
* This test is for Linux/glibc systemsand others that implement proper
3-
*locale classification of Unicode characters with highcode values.
2+
* This test is for Linux/glibc systems(conceivably it could be run on
3+
*others that implement proper classification of highUnicode characters).
44
* It must be run in a database with UTF8 encoding and a Unicode-aware locale.
55
*/
66

7+
SELECT getdatabaseencoding()<>'UTF8'OR
8+
current_setting('lc_ctype')='C'OR
9+
version() !~'linux-gnu'
10+
AS skip_test \gset
11+
\if :skip_test
12+
\quit
13+
\endif
14+
715
SET client_encoding TO UTF8;
816

917
--

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp