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

Commit85f51de

Browse files
committed
Supress ecpg thread test if configure didn't enable threads. Fix
tools/thread to run even if configure didn't enable threads because thistest is used before enabling threads for the OS.
1 parent580cae7 commit85f51de

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

‎src/Makefile.global.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*-makefile-*-
2-
# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.171 2003/11/29 19:51:39 pgsql Exp $
2+
# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.172 2003/12/19 23:29:15 momjian Exp $
33

44
#------------------------------------------------------------------------------
55
# All PostgreSQL makefiles include this file and use the variables it sets,
@@ -121,7 +121,6 @@ localedir := @localedir@
121121
#
122122
# Records the choice of the various --enable-xxx and --with-xxx options.
123123

124-
with_threads= @with_threads@
125124
with_java= @with_java@
126125
with_perl= @with_perl@
127126
with_python= @with_python@
@@ -131,6 +130,7 @@ enable_shared= @enable_shared@
131130
enable_rpath= @enable_rpath@
132131
enable_nls= @enable_nls@
133132
enable_debug= @enable_debug@
133+
enable_thread_safety= @enable_thread_safety@
134134

135135
python_includespec= @python_includespec@
136136
python_libspec= @python_libspec@

‎src/interfaces/ecpg/test/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $PostgreSQL: pgsql/src/interfaces/ecpg/test/Makefile,v 1.42 2003/11/29 19:52:09 pgsql Exp $
1+
# $PostgreSQL: pgsql/src/interfaces/ecpg/test/Makefile,v 1.43 2003/12/19 23:29:15 momjian Exp $
22

33
subdir = src/interfaces/ecpg/test
44
top_builddir = ../../../..
@@ -8,7 +8,10 @@ override CPPFLAGS := -I$(srcdir)/../include -I$(libpq_srcdir) $(CPPFLAGS) $(THRE
88

99
ECPG = ../preproc/ecpg -I$(srcdir)/../include
1010

11-
TESTS = test1 test2 test3 test4 perftest dyntest dyntest2 test_notice test_code100 test_init testdynalloc num_test dt_test test_informix test_thread
11+
TESTS = test1 test2 test3 test4 perftest dyntest dyntest2 test_notice test_code100 test_init testdynalloc num_test dt_test test_informix
12+
ifeq ($(enable_thread_safety), yes)
13+
TESTS += test_thread
14+
endif
1215

1316
all:$(TESTS)
1417

‎src/tools/thread/thread_test.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
9-
*$PostgreSQL: pgsql/src/tools/thread/thread_test.c,v 1.5 2003/11/29 19:52:14 pgsql Exp $
9+
*$PostgreSQL: pgsql/src/tools/thread/thread_test.c,v 1.6 2003/12/19 23:29:15 momjian Exp $
1010
*
1111
*This program tests to see if your standard libc functions use
1212
*pthread_setspecific()/pthread_getspecific() to be thread-safe.
@@ -20,10 +20,7 @@
2020
*-------------------------------------------------------------------------
2121
*/
2222

23-
24-
#ifdefENABLE_THREAD_SAFETY
2523
#include<pthread.h>
26-
#endif
2724
#include<unistd.h>
2825
#include<stdio.h>
2926
#include<stdlib.h>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp