oneDPL
oneDPL copied to clipboard
Additional includes into test/support/test_config.h
In this PR we have 3 big changes:
- In the file
test/support/test_config.h
we add inclusion of some files from standard library to have correct definitions of used defines:
// Any include from standard library required to have correct state of _GLIBCXX_RELEASE
#if __has_include(<version>)
# include <version>
#else
# include <ciso646>
#endif
- In all tests now we include
test/support/test_config.h
at first place. No additional includes required anymore if they are really not required for the test: example1, example2 - For CI errors after (1) and (2) @kboyarinov prepared the fix for the failed CI tasks at
include/oneapi/dpl/internal/common_config.h
: see changes. Also this fix resolves a lot of errors in the tests compiled withg++
compiler.
Also we have the alternative approach at https://github.com/oneapi-src/oneDPL/pull/1555