15 #include <ecl/config/ecl.hpp> 16 #if defined(ECL_IS_POSIX) 23 #include <gtest/gtest.h> 24 #include <ecl/config/ecl.hpp> 27 #include "../../include/ecl/threads/mutex.hpp" 41 TEST(MutexTests,selfDestruct)
43 #if defined(NDEBUG) || defined(ECL_NDEBUG) 44 std::cout <<
"Skipping deadlock tests - posix doesn't help you in release mode." << std::endl;
53 }
catch (StandardException &e) {
60 TEST(MutexTests,tryLock)
65 EXPECT_FALSE(mutex.trylock());
69 TEST(MutexTests,timedLock)
84 int main(
int argc,
char **argv)
87 testing::InitGoogleTest(&argc, argv);
88 return RUN_ALL_TESTS();
97 int main(
int argc,
char **argv)
100 std::cout <<
"Currently not supported on your platform." << std::endl;
int main(int argc, char **argv)
TEST(TypeTests, fundamentals)