Only run, if threads are enabled.

2004-02-26  Sebastian Wilhelmi  <seppi@seppi.de>

	* tests/child-test.c (main): Only run, if threads are enabled.
This commit is contained in:
Sebastian Wilhelmi 2004-02-26 17:20:01 +00:00 committed by Sebastian Wilhelmi
parent ea9d13892e
commit c36865b1ec
7 changed files with 18 additions and 2 deletions

View File

@ -1,5 +1,7 @@
2004-02-26 Sebastian Wilhelmi <seppi@seppi.de>
* tests/child-test.c (main): Only run, if threads are enabled.
* glib/gatomic.h: empty G_ATOMIC_MEMORY_BARRIER() definition for
!G_THREADS_ENABLED

View File

@ -1,5 +1,7 @@
2004-02-26 Sebastian Wilhelmi <seppi@seppi.de>
* tests/child-test.c (main): Only run, if threads are enabled.
* glib/gatomic.h: empty G_ATOMIC_MEMORY_BARRIER() definition for
!G_THREADS_ENABLED

View File

@ -1,5 +1,7 @@
2004-02-26 Sebastian Wilhelmi <seppi@seppi.de>
* tests/child-test.c (main): Only run, if threads are enabled.
* glib/gatomic.h: empty G_ATOMIC_MEMORY_BARRIER() definition for
!G_THREADS_ENABLED

View File

@ -1,5 +1,7 @@
2004-02-26 Sebastian Wilhelmi <seppi@seppi.de>
* tests/child-test.c (main): Only run, if threads are enabled.
* glib/gatomic.h: empty G_ATOMIC_MEMORY_BARRIER() definition for
!G_THREADS_ENABLED

View File

@ -1,5 +1,7 @@
2004-02-26 Sebastian Wilhelmi <seppi@seppi.de>
* tests/child-test.c (main): Only run, if threads are enabled.
* glib/gatomic.h: empty G_ATOMIC_MEMORY_BARRIER() definition for
!G_THREADS_ENABLED

View File

@ -1,5 +1,7 @@
2004-02-26 Sebastian Wilhelmi <seppi@seppi.de>
* tests/child-test.c (main): Only run, if threads are enabled.
* glib/gatomic.h: empty G_ATOMIC_MEMORY_BARRIER() definition for
!G_THREADS_ENABLED

View File

@ -86,7 +86,10 @@ test_thread (gpointer data)
int
main (int argc, char *argv[])
{
g_thread_init (NULL);
/* Only run the test, if threads are enabled and a default thread
implementation is available */
#if defined(G_THREADS_ENABLED) && ! defined(G_THREADS_IMPL_NONE)
g_thread_init (NULL);
main_loop = g_main_loop_new (NULL, FALSE);
system ("/bin/true");
@ -97,5 +100,6 @@ main (int argc, char *argv[])
g_main_loop_run (main_loop);
return 0;
#endif
return 0;
}