-
- Downloads
libstdc++: Add dg-require-cpp-feature-test to test feature test macros
This adds a new dejagnu directive which can be used to make a test depend on a feature test macro such as __cpp_lib_text_encoding. This is mroe flexible than writing a new dg-require-xxx for each feature. libstdc++-v3/ChangeLog: * testsuite/lib/dg-options.exp (dg-require-cpp-feature-test): New proc. * testsuite/lib/libstdc++.exp (check_v3_target_cpp_feature_test): New proc. * testsuite/std/text_encoding/cons.cc: Use new directive to skip the test if the __cpp_lib_text_encoding feature test macro is not defined. * testsuite/std/text_encoding/requirements.cc: Likewise.
Showing
- libstdc++-v3/testsuite/lib/dg-options.exp 9 additions, 0 deletionslibstdc++-v3/testsuite/lib/dg-options.exp
- libstdc++-v3/testsuite/lib/libstdc++.exp 15 additions, 0 deletionslibstdc++-v3/testsuite/lib/libstdc++.exp
- libstdc++-v3/testsuite/std/text_encoding/cons.cc 1 addition, 0 deletionslibstdc++-v3/testsuite/std/text_encoding/cons.cc
- libstdc++-v3/testsuite/std/text_encoding/requirements.cc 1 addition, 0 deletionslibstdc++-v3/testsuite/std/text_encoding/requirements.cc
Loading
Please register or sign in to comment