mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-05 10:04:12 +08:00
1e6e7eae8a
We have tools/build/feature/test-all.c to speed up feature testing,
doing all tests at once, but then all tests in this file should normally
pass.
That is not the case with the sched-getcpu one, that wasn't passing when
included from test-all.c because it needs to have _GNU_SOURCE defined
before including sched.h, but _GNU_SOURCE is defined by a header
included from another feature test included earlier in test-all.d,
test-libpython.c, resulting in:
$ cat /tmp/build/perf/feature/test-all.make.output
In file included from test-all.c:121:0:
test-sched_getcpu.c:1:0: error: "_GNU_SOURCE" redefined [-Werror]
#define _GNU_SOURCE
In file included from /usr/include/python2.7/pyconfig.h:6:0,
from /usr/include/python2.7/Python.h:8,
from test-libpython.c:1,
from test-all.c:13:
/usr/include/python2.7/pyconfig-64.h:1177:0: note: this is the location of the previous definition
#define _GNU_SOURCE 1
cc1: all warnings being treated as errors
Which would trigger testing the tests individually, when that
_GNU_SOURCE redefinition would not take place, and the whole process
would continue, just slower... Fix it.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Fixes:
|
||
---|---|---|
.. | ||
.gitignore | ||
Makefile | ||
test-all.c | ||
test-backtrace.c | ||
test-bionic.c | ||
test-bpf.c | ||
test-clang.cpp | ||
test-compile.c | ||
test-cplus-demangle.c | ||
test-cxx.cpp | ||
test-dwarf_getlocations.c | ||
test-dwarf.c | ||
test-fortify-source.c | ||
test-get_cpuid.c | ||
test-glibc.c | ||
test-gtk2-infobar.c | ||
test-gtk2.c | ||
test-hello.c | ||
test-jvmti.c | ||
test-libaudit.c | ||
test-libbabeltrace.c | ||
test-libbfd.c | ||
test-libcrypto.c | ||
test-libdw-dwarf-unwind.c | ||
test-libelf-gelf_getnote.c | ||
test-libelf-getphdrnum.c | ||
test-libelf-getshdrstrndx.c | ||
test-libelf-mmap.c | ||
test-libelf.c | ||
test-libnuma.c | ||
test-libperl.c | ||
test-libpython-version.c | ||
test-libpython.c | ||
test-libslang.c | ||
test-libunwind-aarch64.c | ||
test-libunwind-arm.c | ||
test-libunwind-debug-frame-aarch64.c | ||
test-libunwind-debug-frame-arm.c | ||
test-libunwind-debug-frame.c | ||
test-libunwind-x86_64.c | ||
test-libunwind-x86.c | ||
test-libunwind.c | ||
test-llvm-version.cpp | ||
test-llvm.cpp | ||
test-lzma.c | ||
test-numa_num_possible_cpus.c | ||
test-pthread-attr-setaffinity-np.c | ||
test-sched_getcpu.c | ||
test-sdt.c | ||
test-stackprotector-all.c | ||
test-sync-compare-and-swap.c | ||
test-timerfd.c | ||
test-zlib.c |