fcoulombe / googlemock

Automatically exported from code.google.com/p/googlemock
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

should catch bad usages at run time #62

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If two threads call EXPECT_CALL or ON_CALL concurrently, gmock should
report an error.

If an EXPECT_CALL() or ON_CALL() is called after an expected mock method is
called, gmock should also report an error.

Original issue reported on code.google.com by zhanyong...@gmail.com on 9 Aug 2009 at 12:30

GoogleCodeExporter commented 9 years ago
Maybe this would be helpful:
http://code.google.com/p/data-race-test/wiki/RaceCheckerClass

With --race_checker=2 --race_checker_sleep_ms=0 this would work exactly as you 
want.

Original comment by timurrrr on 10 Aug 2009 at 10:57

GoogleCodeExporter commented 9 years ago
Thanks for the pointer, @timurrrr.  I'm thinking about a light-weight solution 
that
doesn't need to depend on more external libraries, but I'll keep your 
suggestion in
mind in case the requirements change.

Original comment by zhanyong...@gmail.com on 17 Aug 2009 at 8:30

GoogleCodeExporter commented 9 years ago
Not sure if it's worth the complexity.

Original comment by w...@google.com on 6 Mar 2010 at 5:52

GoogleCodeExporter commented 9 years ago

Original comment by w...@google.com on 5 Jun 2010 at 6:42