From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-x32a.google.com with SMTP id m8-20020a05600c3b0800b003d96f801c48so2407556wms.0; Sat, 24 Dec 2022 03:42:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:reply-to:message-id:date :subject:to:from:from:to:cc:subject:date:message-id:reply-to; bh=rhtfMyUM5COvuSL7pc+j3JjyI1KaRBfgm9XzEegNT9A=; b=EJv1jxIIY0uJG2wpBfWFRww2Q1TWG746CAX2RBrQ7AZOlU/g5OxiI3khP/4hkfJ7DM tBX1m9/gxyhg5McuqUC8gOWOQLdKSQkJxMJFZO7F8OGo5ROwkv+PQKqO2lRU7hxMZl+j EA1SfleB92+Pp08PIMNciQ3JX0Jlo99J6qs/s3DhkqKk9d2g4sPyRwdnVdHYRoyPfpq6 vQmfKci5CF3K7x34nyugBscMdl/qUuvIUktg7f7EwxGtvB3W0cyRo346qZ7vq4fedekT BmQjBeWskISZkNAHYg9d8lF8m/3a//MdEnhp1y3nXJvl/DIoFb7cRb0yZ7e0Y7BJDE5x wNmA== 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) From: Iain Sandoe X-Google-Original-From: Iain Sandoe 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) Reply-To: iain@sandoe.co.uk 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 List-Id: 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 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 #include -static bool override_used = true; +static bool override_used = false; namespace __gnu_cxx { -- 2.37.1 (Apple Git-137.1)