From 690e11b8f57616d1a3d176d869412d8183d65fe9 Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Fri, 12 Nov 2004 19:43:57 +0000 Subject: [PATCH] re PR testsuite/14264 (testsuite should set LC_ALL/LANG to C) 2004-11-12 Andrew Pinski PR other/14264 * lib/g++.exp: Set LC_ALL and LANG to C. * lib/gcc-dg.exp: Likewise. * lib/gfortran.exp: Likewise. * lib/objc.exp: Likewise. * lib/treelang.exp: Likewise. 2004-11-12 Andrew Pinski PR other/14264 * testsuite/lib/libstdc++.exp: Set LC_ALL and LANG to C. 2004-11-12 Andrew Pinski PR other/14264 * testsuite/lib/libjava.exp: Set LC_ALL and LANG to C. From-SVN: r90539 --- gcc/testsuite/ChangeLog | 9 +++++++++ gcc/testsuite/lib/g++.exp | 4 ++++ gcc/testsuite/lib/gcc-dg.exp | 4 ++++ gcc/testsuite/lib/gfortran.exp | 4 ++++ gcc/testsuite/lib/objc.exp | 4 ++++ gcc/testsuite/lib/treelang.exp | 6 ++++++ libjava/ChangeLog | 5 +++++ libjava/testsuite/lib/libjava.exp | 4 ++++ libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/testsuite/lib/libstdc++.exp | 4 ++++ 10 files changed, 49 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7ac76f7fdcd..853cd4a6a48 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,12 @@ +2004-11-12 Andrew Pinski + + PR other/14264 + * lib/g++.exp: Set LC_ALL and LANG to C. + * lib/gcc-dg.exp: Likewise. + * lib/gfortran.exp: Likewise. + * lib/objc.exp: Likewise. + * lib/treelang.exp: Likewise. + 2004-11-12 Andreas Schwab * gcc.dg/pr16286.c: Fix last change. diff --git a/gcc/testsuite/lib/g++.exp b/gcc/testsuite/lib/g++.exp index 22fb5d7608c..d591238f139 100644 --- a/gcc/testsuite/lib/g++.exp +++ b/gcc/testsuite/lib/g++.exp @@ -218,6 +218,10 @@ proc g++_init { args } { global TESTING_IN_BUILD_TREE global target_triplet + # We set LC_ALL and LANG to C so that we get the same error messages as expected. + setenv LC_ALL C + setenv LANG C + if ![info exists GXX_UNDER_TEST] then { if [info exists TOOL_EXECUTABLE] { set GXX_UNDER_TEST $TOOL_EXECUTABLE; diff --git a/gcc/testsuite/lib/gcc-dg.exp b/gcc/testsuite/lib/gcc-dg.exp index 1bb5bd06b26..848526b32b9 100644 --- a/gcc/testsuite/lib/gcc-dg.exp +++ b/gcc/testsuite/lib/gcc-dg.exp @@ -22,6 +22,10 @@ load_lib scantree.exp load_lib prune.exp load_lib libgloss.exp +# We set LC_ALL and LANG to C so that we get the same error messages as expected. +setenv LC_ALL C +setenv LANG C + if ![info exists TORTURE_OPTIONS] { # It is theoretically beneficial to group all of the O2/O3 options together, # as in many cases the compiler will generate identical executables for diff --git a/gcc/testsuite/lib/gfortran.exp b/gcc/testsuite/lib/gfortran.exp index 805b61960ce..1207d2b572b 100644 --- a/gcc/testsuite/lib/gfortran.exp +++ b/gcc/testsuite/lib/gfortran.exp @@ -161,6 +161,10 @@ proc gfortran_init { args } { global GFORTRAN_UNDER_TEST global TESTING_IN_BUILD_TREE + # We set LC_ALL and LANG to C so that we get the same error messages as expected. + setenv LC_ALL C + setenv LANG C + if ![info exists GFORTRAN_UNDER_TEST] then { if [info exists TOOL_EXECUTABLE] { set GFORTRAN_UNDER_TEST $TOOL_EXECUTABLE; diff --git a/gcc/testsuite/lib/objc.exp b/gcc/testsuite/lib/objc.exp index e4d10e04cd2..6cba354cfc9 100644 --- a/gcc/testsuite/lib/objc.exp +++ b/gcc/testsuite/lib/objc.exp @@ -94,6 +94,10 @@ proc objc_init { args } { global TOOL_EXECUTABLE global objc_libgcc_s_path + # We set LC_ALL and LANG to C so that we get the same error messages as expected. + setenv LC_ALL C + setenv LANG C + if { $objc_initialized == 1 } { return; } if ![info exists OBJC_UNDER_TEST] then { diff --git a/gcc/testsuite/lib/treelang.exp b/gcc/testsuite/lib/treelang.exp index 57ea992d2f0..6d3777382bf 100644 --- a/gcc/testsuite/lib/treelang.exp +++ b/gcc/testsuite/lib/treelang.exp @@ -91,6 +91,12 @@ proc treelang_init { args } { global TOOL_EXECUTABLE global treelang_libgcc_s_path + + # We set LC_ALL and LANG to C so that we get the same error messages as expected. + setenv LC_ALL C + setenv LANG C + + if { $treelang_initialized == 1 } { return; } if ![info exists TREELANG_UNDER_TEST] then { diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 6d130ff2d62..1e9a691317b 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2004-11-12 Andrew Pinski + + PR other/14264 + * testsuite/lib/libjava.exp: Set LC_ALL and LANG to C. + 2004-11-11 Casey Marshall * gnu/java/nio/FileLock.java (isValid): locks are valid if the diff --git a/libjava/testsuite/lib/libjava.exp b/libjava/testsuite/lib/libjava.exp index 8c79199c614..3e960a9545f 100644 --- a/libjava/testsuite/lib/libjava.exp +++ b/libjava/testsuite/lib/libjava.exp @@ -140,6 +140,10 @@ proc libjava_init { args } { global libjava_libgcc_s_path global target_triplet + # We set LC_ALL and LANG to C so that we get the same error messages as expected. + setenv LC_ALL C + setenv LANG C + if { $libjava_initialized == 1 } { return; } if ![info exists GCJ_UNDER_TEST] { diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 3cace9cc94a..ff93b2df6a9 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2004-11-12 Andrew Pinski + + PR other/14264 + * testsuite/lib/libstdc++.exp: Set LC_ALL and LANG to C. + 2004-11-09 Paolo Carlini * include/bits/locale_facets.tcc (time_get<>::do_get_weekday, diff --git a/libstdc++-v3/testsuite/lib/libstdc++.exp b/libstdc++-v3/testsuite/lib/libstdc++.exp index b126ef3107a..c570eae132d 100644 --- a/libstdc++-v3/testsuite/lib/libstdc++.exp +++ b/libstdc++-v3/testsuite/lib/libstdc++.exp @@ -84,6 +84,10 @@ proc libstdc++_init { testfile } { global original_ld_library_path global target_triplet + # We set LC_ALL and LANG to C so that we get the same error messages as expected. + setenv LC_ALL C + setenv LANG C + set blddir [lookfor_file [get_multilibs] libstdc++-v3] set flags_file "${blddir}/scripts/testsuite_flags" v3track flags_file 2