pgsql: Make setlocale in ECPG test cases thread aware on Windows.

From: Michael Meskes <meskes(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Make setlocale in ECPG test cases thread aware on Windows.
Date: 2017-08-26 11:02:15
Message-ID: E1dlYr1-0007MZ-L7@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Make setlocale in ECPG test cases thread aware on Windows.

Fix threaded test cases on Windows not to crash in setlocale() which can be
global or local to a thread on Windows.

Author: Christian Ullrich

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a772624b1d6b47ac00384901e1753f1d34b0cd10

Modified Files
--------------
src/interfaces/ecpg/test/expected/thread-alloc.c | 39 +++++++------
.../ecpg/test/expected/thread-descriptor.c | 19 +++---
src/interfaces/ecpg/test/expected/thread-prep.c | 67 ++++++++++++----------
src/interfaces/ecpg/test/expected/thread-thread.c | 60 ++++++++++---------
.../ecpg/test/expected/thread-thread_implicit.c | 60 ++++++++++---------
src/interfaces/ecpg/test/thread/alloc.pgc | 5 ++
src/interfaces/ecpg/test/thread/descriptor.pgc | 5 ++
src/interfaces/ecpg/test/thread/prep.pgc | 5 ++
src/interfaces/ecpg/test/thread/thread.pgc | 6 ++
.../ecpg/test/thread/thread_implicit.pgc | 6 ++
10 files changed, 163 insertions(+), 109 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2017-08-26 13:27:15 pgsql: pg_test_timing: Some NLS fixes
Previous Message Robert Haas 2017-08-25 19:20:40 pgsql: Improve low-level backup documentation.