kookie424 / googletest

Automatically exported from code.google.com/p/googletest
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

FAIL with additional message #181

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
There should be a FAIL macro with an addional message parameter.

Currently you can use GTEST_FATAL_FAILURE("message"), but this is in the
internal namespace. There should be one in the public namespace.

What version of the product are you using? On what operating system?
Version 1.3 on Linux (Ubuntu) and Solaris 10.

Original issue reported on code.google.com by michael....@gmail.com on 14 Aug 2009 at 11:00

GoogleCodeExporter commented 9 years ago
You can write:

  FAIL() << "message";

(the same way you can stream messages to other assertion macros).

Original comment by zhanyong...@gmail.com on 18 Aug 2009 at 6:54