MartinS
unread,Sep 16, 2011, 4:07:21 AM9/16/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
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
Hi,
I am mocking/faking a syslog-like function for debug printouts. I only got it to work by faking it and forwarding it to a vsyslog-like mock.
It works nice in principle, but it renders "--gmock_verbose=info" useless, since it fills up the screen with its matching, and that matching doesn't even show anything useful.
Is there a better way?
/Martin
P.S. Example output (imagine this times 20 000, interleaved with 20 _interesting_ messages...):
dcp_module.cpp:39 (do_register) Entry:""
test/suite/suiteNodes.cpp:95: Mock function call matches EXPECT_CALL(*this, nb_vsyslog(_, NotNull(), _))...
Function call: nb_vsyslog(10, 0x83c1b2a pointing to "%s:%d (%s) %s:\"%s\"", 0xbfa7cfa8 pointing to "")
Stack trace:
dcp_module.cpp:49 (do_register) Exit:""
test/suite/suiteNodes.cpp:95: Mock function call matches EXPECT_CALL(*this, nb_vsyslog(_, NotNull(), _))...
Function call: nb_vsyslog(10, 0x83c1b2a pointing to "%s:%d (%s) %s:\"%s\"", 0xbfa7cfa8 pointing to "")
Stack trace:
dcp_module.cpp:55 (activate) Entry:""
test/suite/suiteNodes.cpp:95: Mock function call matches EXPECT_CALL(*this, nb_vsyslog(_, NotNull(), _))...
Function call: nb_vsyslog(10, 0x83c1b2a pointing to "%s:%d (%s) %s:\"%s\"", 0xbfa7cf48 pointing to "")
Stack trace: