gnucash maint: Bug 797139 - test-report-utilities failure after 10-march in travis

Christopher Lam clam at code.gnucash.org
Fri Mar 13 23:27:54 EDT 2020


Updated	 via  https://github.com/Gnucash/gnucash/commit/6d9e7d93 (commit)
	from  https://github.com/Gnucash/gnucash/commit/82987e13 (commit)



commit 6d9e7d9380432fd64ed2ec44486f2a1ec92147ec
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Sat Mar 14 07:03:02 2020 +0800

    Bug 797139 - test-report-utilities failure after 10-march in travis
    
    gnc_dmy2time64_neutral is TZ-insensitive whereas gnc_dmy2time64 and
    gnc_dmy2time64_end are TZ-sensitive. Using _neutral mixed with others
    will occasionally cause test failures when the dates straddle DST
    boundary dates.
    
    Please see bug report on bugzilla for full details.

diff --git a/gnucash/report/report-system/test/test-report-utilities.scm b/gnucash/report/report-system/test/test-report-utilities.scm
index 13921d47c..4a7df02db 100644
--- a/gnucash/report/report-system/test/test-report-utilities.scm
+++ b/gnucash/report/report-system/test/test-report-utilities.scm
@@ -46,7 +46,7 @@
          (test-day (tm:mday ts-now))
          (test-month (+ 1 (tm:mon ts-now)))
          (test-year (+ 1900 (tm:year ts-now)))
-         (end-date (gnc-dmy2time64-neutral test-day test-month test-year))
+         (end-date (gnc-dmy2time64 test-day test-month test-year))
          (start-date (NDayDelta end-date 10))
          (q-end-date (gnc-dmy2time64-end test-day test-month test-year))
          (q-start-date (gnc-dmy2time64 test-day test-month test-year))



Summary of changes:
 gnucash/report/report-system/test/test-report-utilities.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



More information about the gnucash-changes mailing list