]> 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)
commitdc0a5a62b369e830be8cf274b3b398c0346847e4
treebc2db274c1ab6280a3389a7d728cb038e69cfb7b
parent45d7fa1d6655380a553d451da4718f06eb5e9068
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