oneDPL icon indicating copy to clipboard operation
oneDPL copied to clipboard

Additional includes into test/support/test_config.h

Open SergeyKopienko opened this issue 9 months ago • 0 comments

In this PR we have 3 big changes:

  1. 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
  1. 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
  2. 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 with g++ compiler.

Also we have the alternative approach at https://github.com/oneapi-src/oneDPL/pull/1555

SergeyKopienko avatar Apr 30 '24 10:04 SergeyKopienko