diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-05-01 11:02:55 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-05-01 11:02:55 -0700 |
commit | 0aae7e72a2a11ef1fd2a3b4fd18c8d8d49e0c21b (patch) | |
tree | 84262db1a870e6b7187b3c00bce5f52b7690b4a5 /ld/testsuite/ld-i386 | |
parent | 3f380b502769e55bbcdf7b9587c62344913c6ee8 (diff) |
x86: Run GNU2 TLS tests with working GNU2 TLS support
Check if GNU2 TLS really works before running GNU2 TLS tests.
* testsuite/ld-i386/tls.exp: Run GNU2 TLS tests only if there
is working GNU2 TLS support.
* testsuite/ld-x86-64/tls.exp: Likewise.
* testsuite/lib/ld-lib.exp (check_gnu2_tls_available): New proc.
Diffstat (limited to 'ld/testsuite/ld-i386')
-rw-r--r-- | ld/testsuite/ld-i386/tls.exp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ld/testsuite/ld-i386/tls.exp b/ld/testsuite/ld-i386/tls.exp index 504b0f671a..7a99e4626c 100644 --- a/ld/testsuite/ld-i386/tls.exp +++ b/ld/testsuite/ld-i386/tls.exp @@ -177,6 +177,11 @@ run_ld_link_exec_tests [list \ ] \ ] +# Run-time tests which require working GNU2 TLS support. +if { ![check_gnu2_tls_available] } { + return +} + run_cc_link_tests [list \ [list \ "Build libtlsdesc1.so" \ |