[libcxx] r233367 - Fix PR23041. Use lock_shared() as opposed to lock() in shared_lock test.

Eric Fiselier eric at efcs.ca
Fri Mar 27 00:07:51 PDT 2015


Author: ericwf
Date: Fri Mar 27 02:07:51 2015
New Revision: 233367

URL: http://llvm.org/viewvc/llvm-project?rev=233367&view=rev
Log:
Fix PR23041. Use lock_shared() as opposed to lock() in shared_lock test.

Modified:
    libcxx/trunk/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/mutex_adopt_lock.pass.cpp

Modified: libcxx/trunk/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/mutex_adopt_lock.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/mutex_adopt_lock.pass.cpp?rev=233367&r1=233366&r2=233367&view=diff
==============================================================================
--- libcxx/trunk/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/mutex_adopt_lock.pass.cpp (original)
+++ libcxx/trunk/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/mutex_adopt_lock.pass.cpp Fri Mar 27 02:07:51 2015
@@ -22,7 +22,7 @@ int main()
 {
 #if _LIBCPP_STD_VER > 11
     std::shared_timed_mutex m;
-    m.lock();
+    m.lock_shared();
     std::shared_lock<std::shared_timed_mutex> lk(m, std::adopt_lock);
     assert(lk.mutex() == &m);
     assert(lk.owns_lock() == true);





More information about the cfe-commits mailing list