OSDN Git Service

* gcc.dg/vect/pr18425.c: Use effective target vect_long.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / lib / g++.exp
index b863785..d591238 100644 (file)
@@ -138,7 +138,7 @@ proc g++_link_flags { paths } {
          if { "$mldir" == "." } {
            continue
          }
-         if { [llength [glob -nocomplain ${rootme}/${mldir}/libgcc_s*.so.*]] == 1 } {
+         if { [llength [glob -nocomplain ${rootme}/${mldir}/libgcc_s*.so.*]] >= 1 } {
            append ld_library_path ":${rootme}/${mldir}"
          }
        }
@@ -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;