The testsuite for libstdc++ aims to skips test cases for which not all required locales are installed. This patch adds missing directives about required locales to one test case to avoid false positive test failures on systems that have a partial set of locales installed.
Verified by test suite runs that this patch changes the test case from FAIL to UNSUPPORTED when not all required locales are available and that the test case will run and PASS when the necessary locales have been added. Please review and merge this patch if you agree. While this patch is trivial, it may safe others a few minutes of confusion ;-) Marius libstdc++-v3/ChangeLog: 2020-11-24 Marius Hillenbrand <mhil...@linux.ibm.com> * testsuite/22_locale/locale/cons/5.cc: Add missing directives for required locales. --- libstdc++-v3/testsuite/22_locale/locale/cons/5.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/testsuite/22_locale/locale/cons/5.cc b/libstdc++-v3/testsuite/22_locale/locale/cons/5.cc index 8fd73960abb..49e863ec85c 100644 --- a/libstdc++-v3/testsuite/22_locale/locale/cons/5.cc +++ b/libstdc++-v3/testsuite/22_locale/locale/cons/5.cc @@ -1,5 +1,7 @@ -// { dg-require-namedlocale "en_PH" } // { dg-require-namedlocale "de_DE" } +// { dg-require-namedlocale "en_PH" } +// { dg-require-namedlocale "es_MX" } +// { dg-require-namedlocale "fr_FR" } // { dg-require-namedlocale "it_IT" } // 2000-09-13 Benjamin Kosnik <b...@redhat.com> -- 2.26.2