]> git.baikalelectronics.ru Git - kernel.git/commit
tools feature: Undef _GNU_SOURCE at the end of feature tests
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 12 Feb 2019 12:56:57 +0000 (09:56 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 14 Feb 2019 16:31:11 +0000 (13:31 -0300)
commit1d95900e85a5b19a0989f8c4630f9fe2b697990b
treebc2db274c1ab6280a3389a7d728cb038e69cfb7b
parent80ce60c5c7273849c7a8e7d300caf8477edbfade
tools feature: Undef _GNU_SOURCE at the end of feature tests

Since we get all the tests in a single .c file for a first test,
tools/build/feature/test-all.c, if individual tests set that define and
fail to undef it at its end, then it the test-all.c build will fail due
to defining _GNU_SOURCE multiple times, getting us to the slow path,
so undef it at the end in tests that define it.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-w6s00jfo1xabgphzczadl59b@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/build/feature/test-get_current_dir_name.c
tools/build/feature/test-libpython.c
tools/build/feature/test-setns.c