gnucash maint: Fix test failure due to trying to parse nanoseconds, which we don't actually use.
John Ralls
jralls at code.gnucash.org
Fri Dec 18 16:42:38 EST 2015
Updated via https://github.com/Gnucash/gnucash/commit/0a561467 (commit)
from https://github.com/Gnucash/gnucash/commit/9d076500 (commit)
commit 0a561467281e725c93157eb5c444203be553e903
Author: John Ralls <jralls at ceridwen.us>
Date: Fri Dec 18 13:44:20 2015 -0800
Fix test failure due to trying to parse nanoseconds, which we don't actually use.
diff --git a/src/backend/xml/sixtp-utils.c b/src/backend/xml/sixtp-utils.c
index f47d671..29c29a7 100644
--- a/src/backend/xml/sixtp-utils.c
+++ b/src/backend/xml/sixtp-utils.c
@@ -368,7 +368,7 @@ string_to_timespec_secs(const gchar *str, Timespec *ts)
gboolean
string_to_timespec_nsecs(const gchar *str, Timespec *ts)
{
- *ts = gnc_iso8601_to_timespec_gmt(str);
+ /* We don't do nanoseconds anymore. */
return(TRUE);
}
diff --git a/src/engine/test-core/test-engine-stuff.c b/src/engine/test-core/test-engine-stuff.c
index 1415b6b..ea973ed 100644
--- a/src/engine/test-core/test-engine-stuff.c
+++ b/src/engine/test-core/test-engine-stuff.c
@@ -239,20 +239,7 @@ get_random_timespec(void)
while (ret->tv_sec <= 0)
ret->tv_sec = rand();
- if (zero_nsec)
- ret->tv_nsec = 0;
- else
- {
- ret->tv_nsec = rand();
-
- if (usec_resolution)
- {
- ret->tv_nsec = MIN (ret->tv_nsec, 999999999);
- ret->tv_nsec /= 1000;
- ret->tv_nsec *= 1000;
- }
- }
-
+ ret->tv_nsec = 0;
return ret;
}
Summary of changes:
src/backend/xml/sixtp-utils.c | 2 +-
src/engine/test-core/test-engine-stuff.c | 15 +--------------
2 files changed, 2 insertions(+), 15 deletions(-)
More information about the gnucash-changes
mailing list