Brainbug
unread,May 25, 2011, 10:23:40 PM5/25/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 Google C++ Mocking Framework
Hi,
I was just building gmock-1.6.0 and the version of gtest-1.6.0 that
comes with it on my machine (Windows 7 Ultimate 64-bit, Visual Studio
2010).
When running the tests I had some issues which I am not sure what to
do about (fix them somehow or save to ignore them).
1. In 'gtest', when runing 'gtest_unittest' I got the following
warnings:
Invalid environment variables: we require 0 <=
GTEST_SHARD_INDEX < GTEST_TOTAL_SHARDS, but
you have GTEST_SHARD_INDEX=4, GTEST_TOTAL_SHARDS=4.
Running main() from gtest_main.cc
Invalid environment variables: we require 0 <=
GTEST_SHARD_INDEX < GTEST_TOTAL_SHARDS, but
you have GTEST_SHARD_INDEX=4, GTEST_TOTAL_SHARDS=-2.
Running main() from gtest_main.cc
Invalid environment variables: you have GTEST_SHARD_INDEX = 5,
but have left
GTEST_TOTAL_SHARDS unset.
Running main() from gtest_main.cc
Invalid environment variables: you have GTEST_TOTAL_SHARDS = 5,
but have left
GTEST_SHARD_INDEX unset.
All tests passed but I got the message 'YOU HAVE 13 DISABLED TESTS'
2. In 'gmock' when running 'gmock_test', 2 of the tests failed:
[ FAILED ]
FunctionMockerTest.ReportsExpectCallLocationForExhausedActions
[ FAILED ]
FunctionMockerTest.ReportsDefaultActionLocationOfUninterestingCalls
Detailed messages:
Z:\gmock-1.6.0\gtest\src/gtest.cc(1983): error: Failed All tests in
the same test case must use the same test fixture
class, so mixing TEST_F and TEST in the same test case is illegal. In
test case FunctionMockerTest, test MocksVoidFunction is defined using
TEST_F but test ReportsExpectCallLocationForExhausedActions is defined
using TEST. You probably
want to change the TEST to TEST_F or move it to another test case.
[ FAILED ]
FunctionMockerTest.ReportsExpectCallLocationForExhausedActions (1 ms)
Z:\gmock-1.6.0_VS2010\gtest\src/gtest.cc(1983): error: Failed All
tests in the same test case must use the same test fixture class, so
mixing TEST_F and TEST in the same test case is illegal. In test case
FunctionMockerTest, test MocksVoidFunction is defined using TEST_F but
test ReportsDefaultActionLocationOfUninterestingCalls is defined using
TEST. You probably
want to change the TEST to TEST_F or move it to another test case.
[ FAILED ]
FunctionMockerTest.ReportsDefaultActionLocationOfUninterestingCalls
(2 ms)
Thanks