[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-dev] regression tests failing
From: |
Eric S. Raymond |
Subject: |
Re: [gpsd-dev] regression tests failing |
Date: |
Wed, 7 Jan 2015 16:42:21 -0500 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Beat Bolli <address@hidden>:
> On 07.01.15 19:01, Greg Troxel wrote:
> > 164 failed several of the main tests. This seems to be semi-random.
> >
> > snippet from 163:
> >
> > gcc -o test_json.o -c -D_GNU_SOURCE -Wmissing-prototypes -Wextra -Wall
> > -Wno-uninitialized -Wno-missing-field-initializers -Wcast-align
> > -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes
> > -Wpointer-arith -Wreturn-type -pthread -Wmissing-declarations -g -O0
> > -pthread test_json.c
> > gcc -o test_json -pthread -Wl,-rpath=//usr/y0/lib test_json.o -L. -lrt
> > -lgps -lm
> > ./test_json
> > JSON unit test 'time' real attribute eval failed, value = 1119165161.890000.
> > scons: *** [json-regress] Error 1
> > scons: building terminated because of errors.
>
> This test currently also fails under Linux.
>
> This patch helps:
>
> diff --git a/SConstruct b/SConstruct
> index 10e12db..02180d9 100644
> --- a/SConstruct
> +++ b/SConstruct
> @@ -1691,7 +1691,7 @@ Utility('unpack-makeregress', [test_libgps], [
>
> # Unit-test the JSON parsing
> json_regress = Utility('json-regress', [test_json], [
> - '$SRCDIR/test_json'
> + 'TZ=UTC $SRCDIR/test_json'
> ])
>
> # consistency-check the driver methods
>
> --
For the list: This papered over the real issue, yazug and I have
developed and pushed a better fix.
--
<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>