Fix initsecondarythread_test runtime failure if GC compiled w/o threads
authorIvan Maidanski <ivmai@mail.ru>
Sat, 19 Nov 2016 17:02:25 +0000 (20:02 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Sat, 19 Nov 2016 17:02:25 +0000 (20:02 +0300)
commitf87cce2ef8c1a732ecec7c6e0550cba80174fe77
treeabd5ce039da99bd67e201ae144f0ecdf75f17fb5
parent857bb8ad6b50129e1d30116f80b1f11789cd56c1
Fix initsecondarythread_test runtime failure if GC compiled w/o threads

Now the test should fail during its linking if a single-threaded libgc
is used (this should not happen in case of configure/make).

* tests/initsecondarythread.c (main): Call GC_get_parallel() to ensure
that libgc is compiled with the threads support.
tests/initsecondarythread.c