diff options
Diffstat (limited to 'dbtests/spin_lock_test.cpp')
-rw-r--r-- | dbtests/spin_lock_test.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/dbtests/spin_lock_test.cpp b/dbtests/spin_lock_test.cpp index 4b24aba..dbd637e 100644 --- a/dbtests/spin_lock_test.cpp +++ b/dbtests/spin_lock_test.cpp @@ -16,9 +16,8 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "../pch.h" +#include "pch.h" #include <boost/thread/thread.hpp> - #include "dbtests.h" #include "../util/concurrency/spin_lock.h" @@ -70,8 +69,6 @@ namespace { public: void run() { -#if defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4) || defined(_WIN32) - SpinLock spin; int counter = 0; @@ -92,14 +89,8 @@ namespace { } ASSERT_EQUALS( counter, threads*incs ); -#else - warning() << "spin lock slow on this platform" << endl; - #if defined(__linux__) - // we don't want to have linux binaries without a fast spinlock - //ASSERT( false ); TODO SERVER-3075 -#endif - + ASSERT( SpinLock::isfast() ); #endif } |