From 1a9f259288745633d1cec9991b55c08dfae2669b Mon Sep 17 00:00:00 2001 From: Sandra Loosemore Date: Mon, 27 Apr 2015 22:40:56 -0400 Subject: [PATCH] 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 --- libstdc++-v3/ChangeLog | 7 +++++++ libstdc++-v3/testsuite/lib/libstdc++.exp | 5 +++++ 2 files changed, 12 insertions(+) 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));"