r23289 - gnucash/trunk/src - Adjust error-message tests to pass with Clang

John Ralls jralls at code.gnucash.org
Wed Oct 9 01:28:16 EDT 2013


Author: jralls
Date: 2013-10-09 01:28:15 -0400 (Wed, 09 Oct 2013)
New Revision: 23289
Trac: http://svn.gnucash.org/trac/changeset/23289

Modified:
   gnucash/trunk/src/engine/test/test-object.c
   gnucash/trunk/src/engine/test/utest-Account.c
   gnucash/trunk/src/engine/test/utest-Split.c
   gnucash/trunk/src/engine/test/utest-Transaction.c
   gnucash/trunk/src/libqof/qof/qofbook.c
   gnucash/trunk/src/libqof/qof/qoflog.c
   gnucash/trunk/src/libqof/qof/test/test-gnc-date.c
   gnucash/trunk/src/libqof/qof/test/test-qofbook.c
Log:
Adjust error-message tests to pass with Clang

Clang emits full function signatures for __func__ where GCC emits
only the function name.
Adjust Gnucash's own error messages emitted via PWARN and friends
to trim the extra bits so that only the function name is emitted
regardless of compiler. For messages emitted directly by glib
(usually from g_return_if_fail macros), the message in the test
case is special-cased for Clang so that it matches and the test
passes.



More information about the gnucash-patches mailing list