diff options
author | Antonin Kral <a.kral@bobek.cz> | 2011-06-18 21:24:54 +0200 |
---|---|---|
committer | Antonin Kral <a.kral@bobek.cz> | 2011-06-18 21:24:54 +0200 |
commit | fefb1e355f6cbe35160f2f73ed68a38d95fa59a2 (patch) | |
tree | faecb2fb6677516c5f6d9edfae8475344ddd73ed /dbtests/spin_lock_test.cpp | |
parent | d95b46b2bbb5b4246213f252010508489b4e5719 (diff) | |
parent | 64b33ee522375a8dc15be2875dfb7db4502259b0 (diff) | |
download | mongodb-fefb1e355f6cbe35160f2f73ed68a38d95fa59a2.tar.gz |
Merge commit 'upstream/1.8.2'
Diffstat (limited to 'dbtests/spin_lock_test.cpp')
-rw-r--r-- | dbtests/spin_lock_test.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/dbtests/spin_lock_test.cpp b/dbtests/spin_lock_test.cpp index 01eb7b3..4b24aba 100644 --- a/dbtests/spin_lock_test.cpp +++ b/dbtests/spin_lock_test.cpp @@ -70,7 +70,7 @@ namespace { public: void run() { -#if defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4) +#if defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4) || defined(_WIN32) SpinLock spin; int counter = 0; @@ -93,10 +93,12 @@ namespace { ASSERT_EQUALS( counter, threads*incs ); #else - - // WARNING "TODO Missing spin lock in this platform." - ASSERT( true ); - + 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 #endif |