Message ID | 20250105055750.1668721-46-eggert@cs.ucla.edu (mailing list archive) |
---|---|
State | New |
Headers |
Return-Path: <libc-alpha-bounces~patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5CA533858415 for <patchwork@sourceware.org>; Sun, 5 Jan 2025 06:18:06 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail.cs.ucla.edu (mail.cs.ucla.edu [131.179.128.66]) by sourceware.org (Postfix) with ESMTPS id A527D3858404 for <libc-alpha@sourceware.org>; Sun, 5 Jan 2025 06:00:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A527D3858404 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=cs.ucla.edu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cs.ucla.edu ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A527D3858404 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=131.179.128.66 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1736056812; cv=none; b=LmgBPM2XrPLllR1Q5G3Obz6EDBxrHmJzbfHO6XM3GBlTHIWEznra3KAxPagPjAkCu27vleOcb1AzFBypdQwJMWIV75N4jyZvhnIaX1/4psRCuW4pQPMSIAmNY4enL54rbZKkGe6nRw2oDtjd/Xed7VBP7Uz8id6V9CckvvkyNrU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1736056812; c=relaxed/simple; bh=kolG9VCY/IDf2qXFOITLTNZXtHmmsfAAUVIKoQrBjeU=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=NYA8a5H4z6SSSG2XbTlR6tH1iwdpnmhVAqvHpFkmcyR5DsPH8GvcEjtNwlADn5PCMG4fJ2eoM2KhC3gNZXZRWyAdI5MULpnvMsiFZlQ4yPNz1Jlo9z9pcoDFFkyUHp8BbJ89f430zkcvqIt8525FiaUMsN0oAeeqbLXg3I6eAlo= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A527D3858404 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=cs.ucla.edu header.i=@cs.ucla.edu header.a=rsa-sha256 header.s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C header.b=YozidVxv Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 2AE8A3C123843 for <libc-alpha@sourceware.org>; Sat, 4 Jan 2025 22:00:12 -0800 (PST) Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP id yJS-vd7TnqK2; Sat, 4 Jan 2025 22:00:11 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id D81D03C123844; Sat, 4 Jan 2025 22:00:11 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu D81D03C123844 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1736056811; bh=bvjqZx9x5iorzgKg/SAlYRhMa+L9n5m36jM2Wvfp2nU=; h=From:To:Date:Message-ID:MIME-Version; b=YozidVxv0oDGkhNtsL14viFsfVDujEn1Z9HL0STAnok3bV3jACUosFnztNf4CMB7d S/9x6IKaU4JRcHsVzZLMk9MzzU1WR80YWPxRWG04nOwo26D6nUvcivPCblaZj80Q/m AOAXMK7Vu9eQhozIF9dP+bUZrNEBYZRiBMabcDUWNh41tZuS8qWmYfhIYaT3+eduIs S3tzBkXwkmn6XlW+jAFuKLJ79Mn+dfnqQ7ofNrCMVDNMDMMso7wLispYjcCcZjoyrV PGV7d0oq3JFnmN2n5aC56RhZb5cywOn8tyDRRyIlilePIxfN4vg8xr+/yVJ5+Cdx48 uYAaHTdeoUSoQ== X-Virus-Scanned: amavis at mail.cs.ucla.edu Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10026) with ESMTP id fp6mdkqigjfg; Sat, 4 Jan 2025 22:00:11 -0800 (PST) Received: from wing.home (unknown [47.154.28.214]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id BC7BA3C082EB9; Sat, 4 Jan 2025 22:00:11 -0800 (PST) From: Paul Eggert <eggert@cs.ucla.edu> To: libc-alpha@sourceware.org Cc: Paul Eggert <eggert@cs.ucla.edu> Subject: [PATCH 45/59] Remove invalid tzset tests from tst-bz29951.c Date: Sat, 4 Jan 2025 21:57:20 -0800 Message-ID: <20250105055750.1668721-46-eggert@cs.ucla.edu> X-Mailer: git-send-email 2.45.2 In-Reply-To: <01207110-bd60-46ae-9c08-fb39c2011067@cs.ucla.edu> References: <01207110-bd60-46ae-9c08-fb39c2011067@cs.ucla.edu> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-10.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> Errors-To: libc-alpha-bounces~patchwork=sourceware.org@sourceware.org |
Series |
time: sync mktime from Gnulib
|
|
Checks
Context | Check | Description |
---|---|---|
redhat-pt-bot/TryBot-apply_patch | success | Patch applied to master at the time it was sent |
Commit Message
Paul Eggert
Jan. 5, 2025, 5:57 a.m. UTC
* timezone/tst-bz29951.c (set_timezone): Do not test errno after tzset, as its value is unspecified then. (do_test): Do not test daylight or timezone after tzset, as their values are unspecified with geographical TZ. See Austin Group Defect 1816 <https://www.austingroupbugs.net/view.php?id=1816>. --- timezone/tst-bz29951.c | 8 -------- 1 file changed, 8 deletions(-)
diff --git a/timezone/tst-bz29951.c b/timezone/tst-bz29951.c index ff0eb6ff1e..ee68c5c143 100644 --- a/timezone/tst-bz29951.c +++ b/timezone/tst-bz29951.c @@ -26,9 +26,7 @@ static void set_timezone (const char *name) { TEST_VERIFY (setenv ("TZ", name, 1) == 0); - errno = 0; tzset (); - TEST_COMPARE (errno, 0); } static int @@ -44,15 +42,9 @@ do_test (void) = Fri Oct 25 02:00:00 2013 EET isdst=0 gmtoff=7200 */ set_timezone ("XT6"); - TEST_VERIFY (daylight != 0); - TEST_COMPARE (timezone, -7200); - /* Check that localtime re-initializes the two variables. */ - daylight = timezone = 17; time_t t = 844034401; struct tm *tm = localtime (&t); - TEST_VERIFY (daylight != 0); - TEST_COMPARE (timezone, -7200); TEST_COMPARE (tm->tm_year, 96); TEST_COMPARE (tm->tm_mon, 8); TEST_COMPARE (tm->tm_mday, 29);