Hi all,

This patch will add "unwrapped" target selector for g++.dg/tls tests.

When "needs_status_wrapper" flag is set in a board file, testglue.o is used to wrap exit, _exit, abort etc. standard functions, and print out "*** EXIT code X" for dejagnu. And this print is only done once. Normally, exit() is called first with the return value of main function. And this value is feed back to dejagnu. The really exit code from _exit(), however, is not correctly captured.

This patch will skip those testes as the intended exit code is not correctly captured by dejagnu.

Okay to commit?

Regards,
Renlin Li

gcc/testsuite/ChangeLog:

2015-01-20 Renlin Li <renlin...@arm.com>

    * g++.dg/tls/thread_local5.C: Skip when dejagnu
    wrapper is used.
    * g++.dg/tls/thread_local5g.C: Likewise.
    * g++.dg/tls/thread_local6g.C: Likewise.




diff --git a/gcc/testsuite/g++.dg/tls/thread_local5.C b/gcc/testsuite/g++.dg/tls/thread_local5.C
index 8d17584..c4d5ff0 100644
--- a/gcc/testsuite/g++.dg/tls/thread_local5.C
+++ b/gcc/testsuite/g++.dg/tls/thread_local5.C
@@ -2,6 +2,7 @@
 
 // { dg-do run }
 // { dg-require-effective-target c++11 }
+// { dg-require-effective-target unwrapped }
 // { dg-require-effective-target tls_runtime }
 // { dg-require-effective-target pthread }
 // { dg-options -pthread }
diff --git a/gcc/testsuite/g++.dg/tls/thread_local5g.C b/gcc/testsuite/g++.dg/tls/thread_local5g.C
index f87b038..5ced551 100644
--- a/gcc/testsuite/g++.dg/tls/thread_local5g.C
+++ b/gcc/testsuite/g++.dg/tls/thread_local5g.C
@@ -2,6 +2,7 @@
 
 // { dg-do run }
 // { dg-require-effective-target c++11 }
+// { dg-require-effective-target unwrapped }
 // { dg-require-effective-target tls_runtime }
 // { dg-require-effective-target pthread }
 // { dg-require-cxa-atexit "" }
diff --git a/gcc/testsuite/g++.dg/tls/thread_local6g.C b/gcc/testsuite/g++.dg/tls/thread_local6g.C
index f261d54..b8f9cdf 100644
--- a/gcc/testsuite/g++.dg/tls/thread_local6g.C
+++ b/gcc/testsuite/g++.dg/tls/thread_local6g.C
@@ -2,6 +2,7 @@
 
 // { dg-do run { target c++11 } }
 // { dg-add-options tls }
+// { dg-require-effective-target unwrapped }
 // { dg-require-effective-target tls_runtime }
 // { dg-require-cxa-atexit "" }
 

Reply via email to