Google Test will not execute my test case

3,498 views
Skip to first unread message

Nick Butts

unread,
May 13, 2011, 3:45:45 PM5/13/11
to Google C++ Testing Framework
I am experiencing some weird behavior with 1.6.0 version of Google
Test. I've compiled a simple test case:

#include <gtest/gtest.h>
using testing::Test;

TEST(hello, world)
{
ASSERT_TRUE(false);
}

I have a large project that is compiling multiple shared libraries.
Eventually I have a shared library called libasdatacapture.so. The
final step is to compile the unit tests and link in gtest_main.a.

This works, but when I run the executable I see the following on
stdout:
Running main() from gtest_main.cc
[==========] Running 0 tests from 0 test cases.
[==========] 0 tests from 0 test cases ran. (1 ms total)
[ PASSED ] 0 tests.

I've never seen this behavior before. I've search and I haven't found
anyone describe a similar problem. Any ideas?

Vlad Losev

unread,
May 13, 2011, 3:56:05 PM5/13/11
to Nick Butts, Google C++ Testing Framework

Billy Donahue

unread,
Sep 17, 2015, 9:13:35 AM9/17/15
to konc...@google.com, gunit-users, Google C++ Testing Framework, nlb...@gmail.com

Maybe youre simple_test.cc file wasn't linked into your test executable?


On Thu, Sep 17, 2015 at 7:42 AM, <konc...@google.com> wrote:
what was the problem here? I'm unable to find an explanation.

--

---
You received this message because you are subscribed to the Google Groups "gunit-users" group.
To view this discussion on the web visit https://groups.google.com/a/google.com/d/msgid/gunit-users/3fef9337-76ea-46b9-a53f-9e494568e3ea%40google.com.

Nick B

unread,
Sep 17, 2015, 9:39:38 AM9/17/15
to Billy Donahue, konc...@google.com, gunit-users, Google C++ Testing Framework

Thus was 4 years ago. I must have gotten it working. But i dont recall how.

Reply all
Reply to author
Forward
0 new messages