re PR libstdc++/65909 (check_v3_target_namedlocale blows up on targets that don't support command-line arguments)

2015-04-27  Sandra Loosemore  <sandra@codesourcery.com>

	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
This commit is contained in:
Sandra Loosemore 2015-04-27 22:40:56 -04:00 committed by Sandra Loosemore
parent 227f190afb
commit 1a9f259288
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2015-04-27 Sandra Loosemore <sandra@codesourcery.com>
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 <federico.lenarduzzi@tallertechnologies.com>
Jonathan Wakely <jwakely@redhat.com>

View File

@ -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));"