[PATCH] add tests for tzset(3)
Dimitar Dimitrov
dimitar@dinux.eu
Sun Apr 10 08:43:05 GMT 2022
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 <hi@jdoubleu.de>
> 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
More information about the Newlib
mailing list