X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=glib%2Fgtestutils.h;h=95e6de18b922c094924da4b262e60a2786fdef6f;hb=14f2376c8a06f0936d734ec6a7e0e836072acf65;hp=0118c5086e54c66baf24c5c213b87a5adf120b20;hpb=97fac936708863a52d46cfb0ec3259e1b2c03d29;p=platform%2Fupstream%2Fglib.git diff --git a/glib/gtestutils.h b/glib/gtestutils.h index 0118c50..95e6de1 100644 --- a/glib/gtestutils.h +++ b/glib/gtestutils.h @@ -13,9 +13,7 @@ * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. + * License along with this library; if not, see . */ #ifndef __G_TEST_UTILS_H__ @@ -68,19 +66,19 @@ typedef void (*GTestFixtureFunc) (gpointer fixture, #err, err, dom, c); } while (0) #define g_assert_true(expr) do { if G_LIKELY (expr) ; else \ g_assertion_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, \ - #expr); \ + "'" #expr "' should be TRUE"); \ } while (0) #define g_assert_false(expr) do { if G_LIKELY (!(expr)) ; else \ g_assertion_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, \ - #expr); \ + "'" #expr "' should be FALSE"); \ } while (0) #define g_assert_null(expr) do { if G_LIKELY ((expr) == NULL) ; else \ g_assertion_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, \ - #expr); \ + "'" #expr "' should be NULL"); \ } while (0) #define g_assert_nonnull(expr) do { if G_LIKELY ((expr) != NULL) ; else \ g_assertion_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, \ - #expr); \ + "'" #expr "' should not be NULL"); \ } while (0) #ifdef G_DISABLE_ASSERT #define g_assert_not_reached() do { (void) 0; } while (0) @@ -376,7 +374,7 @@ void g_test_log_msg_free (GTestLogMsg *tmsg); * * Specifies the prototype of fatal log handler functions. * - * Return value: %TRUE if the program should abort, %FALSE otherwise + * Returns: %TRUE if the program should abort, %FALSE otherwise * * Since: 2.22 */