Improves the error message for leaked mocks to include the test name (by Zhanyong Wan).

This commit is contained in:
zhanyong.wan
2009-05-05 23:14:47 +00:00
parent 125783fb87
commit e7bb5ededa
5 changed files with 74 additions and 16 deletions

View File

@@ -298,4 +298,5 @@ Stack trace:
FILE:#: ERROR: this mock object should be deleted but never is. Its address is @0x#.
FILE:#: ERROR: this mock object should be deleted but never is. Its address is @0x#.
ERROR: 2 leaked mock objects found at program exit.
FILE:#: ERROR: this mock object should be deleted but never is. Its address is @0x#.
ERROR: 3 leaked mock objects found at program exit.