From 76e316f995f8970075e93c4888cbe0436363137a Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Wed, 12 Oct 2016 04:29:50 +0000 Subject: [PATCH] Prevent the test suite from hanging when run against libstdc++ llvm-svn: 283975 --- libcxx/test/libcxx/test/config.py | 1 + .../test/std/thread/thread.mutex/thread.lock.algorithm/lock.pass.cpp | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/libcxx/test/libcxx/test/config.py b/libcxx/test/libcxx/test/config.py index 21e54bb..06d3a7b 100644 --- a/libcxx/test/libcxx/test/config.py +++ b/libcxx/test/libcxx/test/config.py @@ -226,6 +226,7 @@ class Configuration(object): 'unsupported value for "cxx_stdlib_under_test": %s' % self.cxx_stdlib_under_test) if self.cxx_stdlib_under_test == 'libstdc++': + self.config.available_features.add('libstdc++') # Manually enable the experimental and filesystem tests for libstdc++ # if the options aren't present. # FIXME this is a hack. diff --git a/libcxx/test/std/thread/thread.mutex/thread.lock.algorithm/lock.pass.cpp b/libcxx/test/std/thread/thread.mutex/thread.lock.algorithm/lock.pass.cpp index eac7600..9e20144 100644 --- a/libcxx/test/std/thread/thread.mutex/thread.lock.algorithm/lock.pass.cpp +++ b/libcxx/test/std/thread/thread.mutex/thread.lock.algorithm/lock.pass.cpp @@ -10,6 +10,11 @@ // XFAIL: libcpp-no-exceptions // UNSUPPORTED: libcpp-has-no-threads +// This test hangs forever when built against libstdc++. In order to allow +// validation of the test suite against other STLs we have to mark it +// unsupported. +// UNSUPPORTED: libstdc++ + // // template -- 2.7.4