From: Sandra Loosemore Date: Tue, 28 Apr 2015 02:40:56 +0000 (-0400) Subject: re PR libstdc++/65909 (check_v3_target_namedlocale blows up on targets that don't... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1a9f259288745633d1cec9991b55c08dfae2669b;p=gcc.git re PR libstdc++/65909 (check_v3_target_namedlocale blows up on targets that don't support command-line arguments) 2015-04-27 Sandra Loosemore PR libstdc++/65909 libstdc++-v3/ * testsuite/lib/libstdc++.exp (check_v3_target_namedlocale): Make the generated test program fail gracefully if the target doesn't support passing command-line arguments. From-SVN: r222497 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index be9364c4ec9..3580f39a453 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,10 @@ +2015-04-27 Sandra Loosemore + + PR libstdc++/65909 + * testsuite/lib/libstdc++.exp (check_v3_target_namedlocale): + Make the generated test program fail gracefully if the target + doesn't support passing command-line arguments. + 2015-04-27 Federico Lenarduzzi Jonathan Wakely diff --git a/libstdc++-v3/testsuite/lib/libstdc++.exp b/libstdc++-v3/testsuite/lib/libstdc++.exp index 6a6374a8e6b..d581a53e3c4 100644 --- a/libstdc++-v3/testsuite/lib/libstdc++.exp +++ b/libstdc++-v3/testsuite/lib/libstdc++.exp @@ -901,6 +901,11 @@ proc check_v3_target_namedlocale { args } { puts $f "using namespace std;" puts $f "int main (int argc, char** argv)" puts $f "{" + puts $f " if (argc < 2)" + puts $f " {" + puts $f " printf(\"locale support test not supported\\n\");" + puts $f " return 1;" + puts $f " }" puts $f " try" puts $f " {" puts $f " locale(*(argv + 1));"