Skip to content

Commit

Permalink
Fix test failure due to trying to parse nanoseconds, which we don't a…
Browse files Browse the repository at this point in the history
…ctually use.
  • Loading branch information
jralls committed Dec 18, 2015
1 parent 9d07650 commit 0a56146
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/backend/xml/sixtp-utils.c
Expand Up @@ -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);
}

Expand Down
15 changes: 1 addition & 14 deletions src/engine/test-core/test-engine-stuff.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 0a56146

Please sign in to comment.