323 views
Skip to first unread message

Kenneth Suralta

unread,
Mar 13, 2012, 12:02:55 AM3/13/12
to Google C++ Testing Framework
Hi,

Has anybody seen this error before?

[----------] Global test environment tear-down
[==========] 6 tests from 1 test case ran. (9 ms total)
[ PASSED ] 6 tests.
[ FATAL ] /x/xx/xx/include/gtest/internal/gtest-port.h:1151::
pthread_mutex_lock(&mutex_)failed with error 22

What is causing this error?

Thanks,
Kenneth

Pasi Valminen

unread,
Mar 13, 2012, 12:09:43 AM3/13/12
to Kenneth Suralta, Google C++ Testing Framework
Hi Kenneth,

Maybe your gtest is compiled without pthread support i.e. -DGTEST_HAS_PTHREAD=0 was defined, but you compile your unittests with pthreads.

HTH,
Pasi
Reply all
Reply to author
Forward
0 new messages