]> granicus.if.org Git - gc/commit
Allow to force executable pages allocation in gctest
authorIvan Maidanski <ivmai@mail.ru>
Thu, 20 Dec 2018 08:34:12 +0000 (11:34 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 20 Dec 2018 08:34:12 +0000 (11:34 +0300)
commitfc6f6cbc684652a72e1077c48988a00243503fff
tree72a95137ce42f2cbcde7f3262490ed59fa78e25f
parent776bec4006a99d5e9b1a233e1c7352e0609bf360
Allow to force executable pages allocation in gctest

Pass -D TEST_PAGES_EXECUTABLE to CFLAGS to enable the executable pages
allocation in gctest even if the collector is compiled with
NO_EXECUTE_PERMISSION.

* tests/test.c (INIT_PAGES_EXECUTABLE): New macro (calls
GC_set_pages_executable(1) if TEST_PAGES_EXECUTABLE).
* tests/test.c (GC_COND_INIT): Call INIT_PAGES_EXECUTABLE (before
GC_OPT_INIT).
* tests/test.c [!PCR && !GC_WIN32_THREADS && !GC_PTHREADS && CPPCHECK]
(main): Remove UNTESTED(GC_set_pages_executable).
tests/test.c