OSDN Git Service

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)
commit0ec572f05721f430cf8470595da8c3d5e25567de
treebc2db274c1ab6280a3389a7d728cb038e69cfb7b
parent39f4a913d6d439178177cae8aa2e9a232160fd51
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