1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

Hook thread_test program run at the end of configure run.

Add test for cross-compiles that they have to run the thread_test
program on the target machine.
This commit is contained in:
Bruce Momjian
2004-04-23 23:58:12 +00:00
parent 95178c8d24
commit f6646efa4c
3 changed files with 82 additions and 3 deletions

View File

@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/tools/thread/thread_test.c,v 1.22 2004/04/23 22:21:49 momjian Exp $
* $PostgreSQL: pgsql/src/tools/thread/thread_test.c,v 1.23 2004/04/23 23:58:12 momjian Exp $
*
* This program tests to see if your standard libc functions use
* pthread_setspecific()/pthread_getspecific() to be thread-safe.
@ -109,7 +109,7 @@ main(int argc, char *argv[])
sched_yield(); /* if this is a portability problem,
* remove it */
fprintf(stderr, "Your errno is thread-safe.\n");
printf("Your errno is thread-safe.\n");
#ifndef HAVE_STRERROR_R
if (strerror_p1 != strerror_p2)