]> granicus.if.org Git - gc/commit
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>
Sun, 27 Nov 2016 06:40:01 +0000 (09:40 +0300)
commit8a3e87d50660cbb9d1284684f4cb07a5a1fd2779
treef04e14bcfb3166420af49e312d6a161c1072be8c
parent57509508da4f95382586417dc06e4e588e4da01e
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