mark libstdc++ tests unsupported if they fail with "relocation truncated"
authornsz <nsz@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 15 Oct 2015 15:15:37 +0000 (15:15 +0000)
committernsz <nsz@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 15 Oct 2015 15:15:37 +0000 (15:15 +0000)
* testsuite/lib/libstdc++.exp (libstdc++-dg-test): Check for
unsupported compiler output.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228844 138bc75d-0d04-0410-961f-82ee72b054a4

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

index ff0b048..6f86466 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 88738b7..769ac94 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]
 }