From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from server28.superhosting.bg (server28.superhosting.bg [217.174.156.11]) by sourceware.org (Postfix) with ESMTPS id 20DB63A4D291 for ; Sun, 10 Apr 2022 08:43:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 20DB63A4D291 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=dinux.eu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=dinux.eu DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dinux.eu; s=default; h=In-Reply-To:Content-Transfer-Encoding:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=qZutjltd6LFj2Yl2t0zC2iahTG6QuAhtl1Ik/Y1EQWI=; b=ULHV80Enbf6k9KTqH9HLGcDgc0 QlsI/Re+ESOkXrp9F0u1kCDm9UkNtCRKhR9AeQ5Tki3T8exRIpYYNXoGd5EFZQId9w0i52hGBaJSM Qk3DPhLaKuwBq2jdjvYYSiQtkYvqlhRjl6tSgb26LblaVVuK6HgeLkErgbUdbTCuo5qS9RkqGwSSv v+z3PqfFUzCl7c+AOkbXLzXG7ZafIRWektmefmyQHzXQQtNJeHys+qiUYNksOpxmj0XiwCQQo9juf jug6l4nfkLU7RvH9ur/iW00SZJaueGIPgaKLBEAGVXIRXWTHkfYydvnHWVrnOblrfEvLUc4cokbPW cH4vjMVw==; Received: from [95.87.234.74] (port=49242 helo=localhost) by server28.superhosting.bg with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ndTA2-0003JU-Hk; Sun, 10 Apr 2022 11:43:08 +0300 Date: Sun, 10 Apr 2022 11:43:05 +0300 From: Dimitar Dimitrov To: jdoubleu Cc: newlib@sourceware.org Subject: Re: [PATCH] add tests for tzset(3) Message-ID: References: <569f6ec3-6bc8-8170-c1fb-ed946020e258@jdoubleu.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <569f6ec3-6bc8-8170-c1fb-ed946020e258@jdoubleu.de> X-OutGoing-Spam-Status: No, score=-2.9 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server28.superhosting.bg X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - dinux.eu X-Get-Message-Sender-Via: server28.superhosting.bg: authenticated_id: dimitar@dinux.eu X-Authenticated-Sender: server28.superhosting.bg: dimitar@dinux.eu X-Source: X-Source-Args: X-Source-Dir: X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Apr 2022 08:43:13 -0000 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 > 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