gnucash master: Remove test for transaction set-date diagnostic message.
John Ralls
jralls at code.gnucash.org
Sun Aug 20 17:26:27 EDT 2017
Updated via https://github.com/Gnucash/gnucash/commit/115d61e7 (commit)
from https://github.com/Gnucash/gnucash/commit/71e37030 (commit)
commit 115d61e7f33b41de8472e91ee12941a2761b37a9
Author: John Ralls <jralls at ceridwen.us>
Date: Sun Aug 20 23:25:46 2017 +0200
Remove test for transaction set-date diagnostic message.
Since we removed the diagnostic, testing for it fails.
diff --git a/libgnucash/engine/test/utest-Transaction.cpp b/libgnucash/engine/test/utest-Transaction.cpp
index 4624593..2204144 100644
--- a/libgnucash/engine/test/utest-Transaction.cpp
+++ b/libgnucash/engine/test/utest-Transaction.cpp
@@ -419,18 +419,11 @@ test_gnc_transaction_set_get_property (Fixture *fixture, gconstpointer pData)
strftime (buff, 80, "%a %b %d %H:%M:%S %Y", localtime(&secs));
auto msg1 = "g_object_set_valist: object class 'Transaction' has no property named 'bogus'";
- auto msg2 = g_strdup_printf ("[xaccTransSetDateInternal] addr=%p set date to %" G_GUINT64_FORMAT ".%09ld %s\n",
- txn, now.tv_sec, now.tv_nsec, buff);
auto loglevel1 = static_cast<GLogLevelFlags>(G_LOG_LEVEL_WARNING | G_LOG_FLAG_FATAL);
- auto loglevel2 =static_cast<GLogLevelFlags>(G_LOG_LEVEL_INFO);
auto check1 = test_error_struct_new ("GLib-GObject", loglevel1, msg1);
- auto check2 = test_error_struct_new ("gnc.engine", loglevel2, msg2);
- g_free (msg2);
fixture->hdlrs = test_log_set_fatal_handler (fixture->hdlrs, check1,
(GLogFunc)test_checked_handler);
- fixture->hdlrs = test_log_set_handler (fixture->hdlrs, check2,
- (GLogFunc)test_checked_handler);
g_assert_cmpstr (txn->num, ==, "");
g_assert_cmpstr (txn->description, ==, "");
g_assert (txn->common_currency == NULL);
@@ -455,7 +448,6 @@ test_gnc_transaction_set_get_property (Fixture *fixture, gconstpointer pData)
g_assert (timespec_equal (&(txn->date_entered), &now));
g_assert (timespec_equal (&(txn->date_posted), &now));
g_assert_cmpint (check1->hits, ==, 1);
- g_assert_cmpint (check2->hits, ==, 2);
g_free (check1->msg);
check1->msg = g_strdup ("g_object_get_valist: object class 'Transaction' has no property named 'bogus'");
@@ -474,7 +466,6 @@ test_gnc_transaction_set_get_property (Fixture *fixture, gconstpointer pData)
g_assert (timespec_equal (t_entered, &now));
g_assert (timespec_equal (t_posted, &now));
g_assert_cmpint (check1->hits, ==, 2);
- g_assert_cmpint (check2->hits, ==, 2);
xaccTransRollbackEdit (txn);
test_destroy (txn);
test_destroy (curr);
Summary of changes:
libgnucash/engine/test/utest-Transaction.cpp | 9 ---------
1 file changed, 9 deletions(-)
More information about the gnucash-changes
mailing list