Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runner reports all is well when <cassert> assert() fails #4

Open
GoogleCodeExporter opened this issue Mar 15, 2015 · 3 comments
Open

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Write a test case:
  TEST_F(Foo, Bar)
  {
    assert(false);
  }

What is the expected output? What do you see instead?
Expected result:
An error message and the assertion failure to be displayed.

Actual result:
All is well. Done x of y. z are disabled.

What version of the product are you using? On what operating system?
1.2.2, Windows 7 x64

Please provide any additional information below.


Original issue reported on code.google.com by k.ren...@gmail.com on 27 Apr 2012 at 7:56

@GoogleCodeExporter
Copy link
Author

Runner should verify the exit code of the application and signal if it is 
non-zero.

Original comment by k.ren...@gmail.com on 27 Apr 2012 at 8:00

@GoogleCodeExporter
Copy link
Author

I will consider this problem

Original comment by vertexw...@gmail.com on 30 Apr 2012 at 2:10

  • Changed state: Started

@GoogleCodeExporter
Copy link
Author


The exit code is checked now and an error message is displayed if the error 
code is non-zero 

Unfortunately I see no possibility to find out which assertion failed - gtest 
only outputs:

[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from Testbed
[ RUN      ] Testbed.Test1

Original comment by vertexw...@gmail.com on 21 May 2012 at 7:27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant