Message ID | 20221224114234.20419-1-iain@sandoe.co.uk |
---|---|
State | Committed |
Commit | 4c3a036be5f4dd68e0e4d8fb3a152c06538f5872 |
Headers |
Return-Path: <gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.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 052493850F25 for <patchwork@sourceware.org>; Sat, 24 Dec 2022 11:43:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 052493850F25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1671882185; bh=rhtfMyUM5COvuSL7pc+j3JjyI1KaRBfgm9XzEegNT9A=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=XDHp4tzxP0bbjzD0aJx1Fe/vQZnvC/NjAmBpSovq2MVDXMfNLijsKs/SXntw2vSV7 BKGEtmenqWifd/KOgp4q6/dEyVz2UCggsTpSipKfSfcFUM2J5HJfg+ti+5BWSf5jMm 4uKa/UwIF+wNl78C+NBbDaKs5S3slrbEFZtQRb5E= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by sourceware.org (Postfix) with ESMTPS id DAF033858D1E; Sat, 24 Dec 2022 11:42:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DAF033858D1E Received: by mail-wm1-x32a.google.com with SMTP id m8-20020a05600c3b0800b003d96f801c48so2407556wms.0; Sat, 24 Dec 2022 03:42:36 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:reply-to:message-id:date :subject:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=rhtfMyUM5COvuSL7pc+j3JjyI1KaRBfgm9XzEegNT9A=; b=GKsDXX9JjfDCZnopoOYLS14kmoGKMfWEyiwnho/1+rFdRM6MLPMJl/8cMWbsxvVznt 2D/Ul0+xKQUgBNPtdSumxqUEPOEVCCbLxRCct1nbnXvUa0Q0qWrHpsHgT7p2LuFd0Y09 Mzj7tQLT6AYxJfOXV4vnx9ii03MIKQ/HCDBYBfY4CQSleBvTNsVxGdF5x5HZSPywA/e9 i5VTah+UiC3Hy6VmSY/qIrZYyVopuGyCC56j+5vVsqdjlRJmuEhmIxi59M9KhyWDmh2v gU9L+E57kJGj8Fg9M8dS5hsu+Ge0RxH1JhfSlUWGbx/LSRkZwlEIQGhLnfLLIgk9ObRF hLow== X-Gm-Message-State: AFqh2koKOaot2bKPMAk8ZKxVOe4RXk9ksltmcfL0QfBVL1EuXr/9MtPY hF3EBY3Pi0HaezX3ipKcuP2Cp7DQI7s= X-Google-Smtp-Source: AMrXdXt2NozTLPY/mWvNkqU1AL2CX5lcfgyDaQkr8Y5wqSQ7lCxnRrEByjy42sNIJBHINtgReQi7Gg== X-Received: by 2002:a05:600c:600a:b0:3d1:ed41:57c0 with SMTP id az10-20020a05600c600a00b003d1ed4157c0mr12159474wmb.30.1671882155844; Sat, 24 Dec 2022 03:42:35 -0800 (PST) Received: from localhost.localdomain (host81-138-1-83.in-addr.btopenworld.com. [81.138.1.83]) by smtp.gmail.com with ESMTPSA id c10-20020a05600c0a4a00b003c6b70a4d69sm7533878wmq.42.2022.12.24.03.42.35 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sat, 24 Dec 2022 03:42:35 -0800 (PST) X-Google-Original-From: Iain Sandoe <iain@sandoe.co.uk> To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [PATCH] libstdc++, testsuite: Correct an init. Date: Sat, 24 Dec 2022 11:42:34 +0000 Message-Id: <20221224114234.20419-1-iain@sandoe.co.uk> X-Mailer: git-send-email 2.37.1 (Apple Git-137.1) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: Iain Sandoe via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: iain@sandoe.co.uk Cc: Iain Sandoe <iains.gcc@gmail.com> Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org> |
Series |
libstdc++, testsuite: Correct an init.
|
|
Commit Message
Iain Sandoe
Dec. 24, 2022, 11:42 a.m. UTC
Noticed while debugging tz info support on Darwin, unless I miss
some other reasoning...
OK for trunk?
Iain
--- 8< ---
in leap_seconds.cc, we are testing to see if the function that
overrides the default zoneinfo directory has been called. That
is implemented with a static boolean that needs to be initialized
to false.
Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
libstdc++-v3/ChangeLog:
* testsuite/std/time/tzdb/leap_seconds.cc: Initialize the
override_used test var to false.
---
libstdc++-v3/testsuite/std/time/tzdb/leap_seconds.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Sat, 24 Dec 2022, 11:43 Iain Sandoe via Libstdc++, <libstdc++@gcc.gnu.org> wrote: > Noticed while debugging tz info support on Darwin, unless I miss > some other reasoning... > OK for trunk? > Doh, thanks. OK for trunk. Iain > > --- 8< --- > > in leap_seconds.cc, we are testing to see if the function that > overrides the default zoneinfo directory has been called. That > is implemented with a static boolean that needs to be initialized > to false. > > Signed-off-by: Iain Sandoe <iain@sandoe.co.uk> > > libstdc++-v3/ChangeLog: > > * testsuite/std/time/tzdb/leap_seconds.cc: Initialize the > override_used test var to false. > --- > libstdc++-v3/testsuite/std/time/tzdb/leap_seconds.cc | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libstdc++-v3/testsuite/std/time/tzdb/leap_seconds.cc > b/libstdc++-v3/testsuite/std/time/tzdb/leap_seconds.cc > index 82303e8bdf0..2b289436583 100644 > --- a/libstdc++-v3/testsuite/std/time/tzdb/leap_seconds.cc > +++ b/libstdc++-v3/testsuite/std/time/tzdb/leap_seconds.cc > @@ -7,7 +7,7 @@ > #include <fstream> > #include <testsuite_hooks.h> > > -static bool override_used = true; > +static bool override_used = false; > > namespace __gnu_cxx > { > -- > 2.37.1 (Apple Git-137.1) > >
diff --git a/libstdc++-v3/testsuite/std/time/tzdb/leap_seconds.cc b/libstdc++-v3/testsuite/std/time/tzdb/leap_seconds.cc index 82303e8bdf0..2b289436583 100644 --- a/libstdc++-v3/testsuite/std/time/tzdb/leap_seconds.cc +++ b/libstdc++-v3/testsuite/std/time/tzdb/leap_seconds.cc @@ -7,7 +7,7 @@ #include <fstream> #include <testsuite_hooks.h> -static bool override_used = true; +static bool override_used = false; namespace __gnu_cxx {