mark libstdc++ tests unsupported if they fail with "relocation truncated"
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Thu, 15 Oct 2015 15:15:37 +0000 (15:15 +0000)
committerSzabolcs Nagy <nsz@gcc.gnu.org>
Thu, 15 Oct 2015 15:15:37 +0000 (15:15 +0000)
* testsuite/lib/libstdc++.exp (libstdc++-dg-test): Check for
unsupported compiler output.

From-SVN: r228844

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/lib/libstdc++.exp

index ff0b048a444d564c0caa169cf51641a624b99d8f..6f86466490c79a1d69801d4ae1d2210593b3ecf7 100644 (file)
@@ -1,3 +1,8 @@
+2015-10-15  Szabolcs Nagy  <szabolcs.nagy@arm.com>
+
+       * testsuite/lib/libstdc++.exp (libstdc++-dg-test): Check for
+       unsupported compiler output.
+
 2015-10-13  Nathan Froyd  <froydnj@gcc.gnu.org>
 
        * config/cpu/i486/opt/bits/opt_random.h: Include pmmintrin.h instead
index 88738b739f1623c11e56bba3a602a862521983c0..769ac9434b2181801e73035b6eef5d085a7b38ec 100644 (file)
@@ -409,6 +409,11 @@ proc libstdc++-dg-test { prog do_what extra_tool_flags } {
     # and-target file), but the defaults are lacking in goodness.
     set comp_output [$select_compile "$prog" "$output_file" "$compile_type" $options];
 
+    set unsupported_message [libstdc++_check_unsupported_p $comp_output]
+    if { $unsupported_message != "" } {
+       set comp_output "::unsupported::$unsupported_message"
+    }
+
     return [list $comp_output $output_file]
 }