How to do multithreaded testing

7,022 views
Skip to first unread message

ernest chiang

unread,
Mar 22, 2010, 3:55:35 PM3/22/10
to googletes...@googlegroups.com
Dear GoogleTestFramework,

I am new to Google Mock, and I need to do some multithreading test with it to reproduce a race condition.  Could you point me to relevant references for Google Mock for this subject?

Thanks.

Ernest.

Miklós Fazekas

unread,
Mar 23, 2010, 1:28:53 AM3/23/10
to ernest chiang, googletes...@googlegroups.com
Ernest,

I do not think that gmock or googletest framework has direct helpers for such tests.  

There is an example for race testing in the gtest internal test suite:
see TEST(MutexTest, OnlyOneThreadCanLockAtATime)

Regards,
Miklós

To unsubscribe from this group, send email to googletestframework+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

Reply all
Reply to author
Forward
0 new messages