Re: [PATCH] add tests for tzset(3)

Dimitar Dimitrov <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <YlKYmZ0oNLitMT2b@kendros>
On Thu, Apr 07, 2022 at 05:58:27PM +0200, jdoubleu wrote:
> Hi,
> 
> I've finally created tests for tzset(3). They test the POSIX timezone string
> compliance.
> 
> This patch is intended to be applied after Brian's tzset changes have been
> pushed (see other discussion).
> 
> You can also find the test vectors online
> (https://github.com/jdoubleu/newlib-posix-tzset-tests/blob/main/timezones.h)
> and run the tests on linux with glibc
> (https://github.com/jdoubleu/newlib-posix-tzset-tests/tree/main/host_test).
> 
> Cheers
> ---
> 🙎🏻‍♂️ jdoubleu

> From 97fa4a760e67f4f553dbe18a3a75fa14e855916d Mon Sep 17 00:00:00 2001
> From: jdoubleu <[email protected]>
> Date: Thu, 7 Apr 2022 17:30:01 +0200
> Subject: [PATCH] add tests for tzset(3)
> 
> ---
>  newlib/testsuite/newlib.time/time.exp |  12 ++
>  newlib/testsuite/newlib.time/tzset.c  | 163 ++++++++++++++++++++++++++
>  2 files changed, 175 insertions(+)
>  create mode 100644 newlib/testsuite/newlib.time/time.exp
>  create mode 100644 newlib/testsuite/newlib.time/tzset.c

Hi,

I get the following failure on pru-none-elf and arm-none-eabi targets:

Assertion failed! Expected 1647906533 to equal 1647916532. winter time, timezone = "<+0123456789ABCDEF>3:33:33"
FAIL: newlib.time/tzset.c execution

Regards,
Dimitar
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.