tests/cpu-policy: Skip building on older versions of GCC
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 24 May 2019 13:14:17 +0000 (14:14 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 24 May 2019 16:50:57 +0000 (17:50 +0100)
commit6fdde9e30846d09dfe0bf0f68de4afa13ef10c22
tree9522aec2da4299e7bf7396c524c9a83a80d6a207
parent188164069a1cac3f5ef37837bc01c0d6eada2eee
tests/cpu-policy: Skip building on older versions of GCC

GCC 4.4 (as included in CentOS 6) is too old to handle designated initialisers
in anonymous unions.  As this is just a developer tool, skip the test in this
case, rather than sacraficing the legibility/expresibility of the test cases.

This fixes the Gitlab CI tests.

While adding this logic to cpu-polcy, adjust the equivelent logic from
x86_emulator on which this was based.  Printing:

  Test harness not built, use newer compiler than "gcc"

isn't helpful for anyone unexpectedly encountering the error.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
tools/tests/cpu-policy/Makefile
tools/tests/x86_emulator/Makefile