Fu Jiantao
unread,Apr 16, 2014, 12:57:47 AM4/16/14Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to googl...@googlegroups.com, googl...@googlegroups.com
Hi,
I'm using gtest in iOS simluator env, and when using gmock, i
encounter such error,
[ FATAL ] /Users/jeromy/work/cisco/mari/adaptation_resilience/build/ios_sim/ThirdParty/src/gmock/gtest/include/gtest/internal/gtest-port.h:1340::
pthread_mutex_lock(&mutex_)failed with error 22
Seems it's relating to the use of gmock, other gtest code has no problem.
TEST(CBandwidthEvalInterfaceTest, AttachDetachMonitor)
{
NetworkMonitorMock monitor;
CBandwidthEvaluator bwEval(false);
EXPECT_CALL(monitor, RegisterSink(_)).Times(1).WillOnce(Return(true));
bool ret = bwEval.AttachNetworkMonitor(&monitor);
ASSERT_EQ(ret,true);
}
Any solutions?
Thanks
Jeromy