mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-03 07:53:39 +02:00
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:
committed by
Sebastian Wilhelmi
parent
ea9d13892e
commit
c36865b1ec
@@ -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
|
||||
|
||||
|
@@ -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
|
||||
|
||||
|
@@ -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
|
||||
|
||||
|
@@ -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
|
||||
|
||||
|
@@ -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
|
||||
|
||||
|
@@ -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
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user