From patchwork Thu Oct 26 20:11:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 158685 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp174472vqb; Thu, 26 Oct 2023 14:16:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFwyeBnGXpudqicXFNdDGgD32IsG/IBqXieXq9YgxhNUl99E6F1v6+I0FjhJSihaWrqLQeZ X-Received: by 2002:a05:620a:27d5:b0:773:bf62:b274 with SMTP id i21-20020a05620a27d500b00773bf62b274mr524745qkp.61.1698354965821; Thu, 26 Oct 2023 14:16:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698354965; cv=pass; d=google.com; s=arc-20160816; b=ttw8Jf7l/aFWn3QsiepycxyliD0aNhM4sdr3bktKkFiXgHZYuZkfM4N/HK1AtwDuZA kjkJ8WDeDua3VfPiUgJNiKdgSffRnsIRTiIPo8myB00sejwCfW6Pkc+LrjnSu4EkvBPy dS/9imvnQPjO1nhQp+uXZu//65mmw1Anror34qNHPeQdU5/JqRu41Df+T9PBhBK1Arrd EwORJSP3dK0RN5euVg7rF/SfyuRu0fCfHgctxP3wYNWJfWtVb7mRmEb/lS7o6OeJImmG YaMXKQ8E9Zx6ecPySVTXY07L63FYtOLzGHWFj908AeZ6Z1B973TSM+tm8ohfza9J9rB6 MExA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=+27W6YvdeSkB2AEqm3KM0NkIud45A3dOjk1DGEX3VSU=; fh=sJ+2/4g29YdyXkoRrFZSpsL2zxijepB7X/1rB0LDDh8=; b=ScDtFnlNy1E5baCekZ2VIO94geK30drjWu3sIGL7KUZZ8dwa046STspk4Yj+NjN8it bjfZQVUWTB08q9rIGzB6Y1Nluce6oE33lOeZSeu/PDo1eWoYIgQxKB/SLeO0psx6+lqs lhhunHByo9F9rKFeL+yf1TumtuspqasQhMF2hcj5zH8JSKZr78aHGPgDDBqjCCOyEERO PpEQ9svY7mwdZ0HYxXpOrnczTv6f06z9zYsCEpwI7lbPYGndZ2ri6DiNJxrRH+pVOglm twxP43BpH5Gvd2sWh9kEVnFJ7vcCu47GXO5S7gp2aYvyHsaua7BH5v+OMBbRevrMrNjJ FSKg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bNxAcbuS; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id bp31-20020a05620a459f00b00778a4087339si47792qkb.479.2023.10.26.14.16.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 14:16:05 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bNxAcbuS; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8EF97386189A for ; Thu, 26 Oct 2023 20:12:23 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 2B0943858C36 for ; Thu, 26 Oct 2023 20:11:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2B0943858C36 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2B0943858C36 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698351119; cv=none; b=RcO3gM9NpJm6qgIcIGkrCbEjoHf9kNofOKNtVVnh9Eq0tL0ifCtFA4p0ybp+6YPLt7gNB17Ap6/aPctkx3+gGdEz9QGOSm+eBHv87GhDPh+yqyWsRbjaIZZAO4nlQ0YepS2Vh7E0t6uiScaJd1jR8opr0AgdW//swaEPEw6FvXw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698351119; c=relaxed/simple; bh=zzo/gGhGcvKw7ejyQ121aB9K5gh2wdtJztDWyHs4dJk=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=hYvIGR64wsEt04aAE5mJsyL8sN+uX3AiY5YzAFb0TKv8zjbbh8+dyszvatrkK1tOI6EVqHbCSV705Evmw85FJPSZJqWjVdZtQBIfpcJJGkWkAqFPivx4GHAnrOaHu1KkTMMevv6gdLBxRK0+oKh+ZELmPhxKXjlG7/lZevKISUU= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698351117; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+27W6YvdeSkB2AEqm3KM0NkIud45A3dOjk1DGEX3VSU=; b=bNxAcbuS2xE7Z+h8SYCOu1pptlp3rn6WnapDvsNkwahREJhpUz/z4wmxqqgpu3DmhFnbiE 2Js91e0nBTABx23s44mSzZRoOFrMrpWwxgxIkJvoACMF8OHSnc/fej/JJHU9NaQqQROK43 5SNcUBrJmQ2/thxnoUF1rPDo+Jse+2o= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-590-wrbb0ApeNzWiR9jvVgyQjQ-1; Thu, 26 Oct 2023 16:11:54 -0400 X-MC-Unique: wrbb0ApeNzWiR9jvVgyQjQ-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 6FD11811E8D; Thu, 26 Oct 2023 20:11:54 +0000 (UTC) Received: from localhost (unknown [10.42.28.221]) by smtp.corp.redhat.com (Postfix) with ESMTP id 374DA492BFA; Thu, 26 Oct 2023 20:11:54 +0000 (UTC) From: Jonathan Wakely To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [committed] libstdc++: Add dg-timeout-factor to IO tests Date: Thu, 26 Oct 2023 21:11:03 +0100 Message-ID: <20231026201153.654072-1-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.10 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=unavailable 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780854256678654433 X-GMAIL-MSGID: 1780854256678654433 Tested x86_64-linux. Pushed to trunk. Worth backporting to gcc-13 too. -- >8 -- This avoids failures due to compilation timeouts when testing with a low tool_timeout value. libstdc++-v3/ChangeLog: * testsuite/20_util/duration/io.cc: Double timeout using dg-timeout-factor. * testsuite/std/time/day/io.cc: Likewise. * testsuite/std/time/format.cc: Likewise. * testsuite/std/time/hh_mm_ss/io.cc: Likewise. * testsuite/std/time/month/io.cc: Likewise. * testsuite/std/time/month_day/io.cc: Likewise. * testsuite/std/time/month_day_last/io.cc: Likewise. * testsuite/std/time/month_weekday/io.cc: Likewise. * testsuite/std/time/month_weekday_last/io.cc: Likewise. * testsuite/std/time/weekday/io.cc: Likewise. * testsuite/std/time/weekday_indexed/io.cc: Likewise. * testsuite/std/time/weekday_last/io.cc: Likewise. * testsuite/std/time/year/io.cc: Likewise. * testsuite/std/time/year_month/io.cc: Likewise. * testsuite/std/time/year_month_day/io.cc: Likewise. * testsuite/std/time/year_month_day_last/io.cc: Likewise. * testsuite/std/time/year_month_weekday/io.cc: Likewise. * testsuite/std/time/year_month_weekday_last/io.cc: Likewise. * testsuite/std/time/zoned_time/io.cc: Likewise. --- libstdc++-v3/testsuite/20_util/duration/io.cc | 1 + libstdc++-v3/testsuite/std/time/day/io.cc | 1 + libstdc++-v3/testsuite/std/time/format.cc | 1 + libstdc++-v3/testsuite/std/time/hh_mm_ss/io.cc | 1 + libstdc++-v3/testsuite/std/time/month/io.cc | 1 + libstdc++-v3/testsuite/std/time/month_day/io.cc | 1 + libstdc++-v3/testsuite/std/time/month_day_last/io.cc | 1 + libstdc++-v3/testsuite/std/time/month_weekday/io.cc | 1 + libstdc++-v3/testsuite/std/time/month_weekday_last/io.cc | 1 + libstdc++-v3/testsuite/std/time/weekday/io.cc | 1 + libstdc++-v3/testsuite/std/time/weekday_indexed/io.cc | 1 + libstdc++-v3/testsuite/std/time/weekday_last/io.cc | 1 + libstdc++-v3/testsuite/std/time/year/io.cc | 1 + libstdc++-v3/testsuite/std/time/year_month/io.cc | 1 + libstdc++-v3/testsuite/std/time/year_month_day/io.cc | 1 + libstdc++-v3/testsuite/std/time/year_month_day_last/io.cc | 1 + libstdc++-v3/testsuite/std/time/year_month_weekday/io.cc | 1 + libstdc++-v3/testsuite/std/time/year_month_weekday_last/io.cc | 1 + libstdc++-v3/testsuite/std/time/zoned_time/io.cc | 1 + 19 files changed, 19 insertions(+) diff --git a/libstdc++-v3/testsuite/20_util/duration/io.cc b/libstdc++-v3/testsuite/20_util/duration/io.cc index a652a34e52f..d2b9de73f83 100644 --- a/libstdc++-v3/testsuite/20_util/duration/io.cc +++ b/libstdc++-v3/testsuite/20_util/duration/io.cc @@ -1,4 +1,5 @@ // { dg-do run { target c++20 } } +// { dg-timeout-factor 2 } #include #include diff --git a/libstdc++-v3/testsuite/std/time/day/io.cc b/libstdc++-v3/testsuite/std/time/day/io.cc index cf5cd3439c4..3454657f69f 100644 --- a/libstdc++-v3/testsuite/std/time/day/io.cc +++ b/libstdc++-v3/testsuite/std/time/day/io.cc @@ -1,5 +1,6 @@ // { dg-do run { target c++20 } } // { dg-require-namedlocale "fr_FR.ISO8859-15" } +// { dg-timeout-factor 2 } #include #include diff --git a/libstdc++-v3/testsuite/std/time/format.cc b/libstdc++-v3/testsuite/std/time/format.cc index 97035e2cdd4..d6e35832cb5 100644 --- a/libstdc++-v3/testsuite/std/time/format.cc +++ b/libstdc++-v3/testsuite/std/time/format.cc @@ -1,4 +1,5 @@ // { dg-do run { target c++20 } } +// { dg-timeout-factor 2 } #include #include diff --git a/libstdc++-v3/testsuite/std/time/hh_mm_ss/io.cc b/libstdc++-v3/testsuite/std/time/hh_mm_ss/io.cc index e431f0cf918..8eb80422e6e 100644 --- a/libstdc++-v3/testsuite/std/time/hh_mm_ss/io.cc +++ b/libstdc++-v3/testsuite/std/time/hh_mm_ss/io.cc @@ -1,4 +1,5 @@ // { dg-do run { target c++20 } } +// { dg-timeout-factor 2 } #include #include diff --git a/libstdc++-v3/testsuite/std/time/month/io.cc b/libstdc++-v3/testsuite/std/time/month/io.cc index fb1c6425f4c..7e80a53bbb6 100644 --- a/libstdc++-v3/testsuite/std/time/month/io.cc +++ b/libstdc++-v3/testsuite/std/time/month/io.cc @@ -1,5 +1,6 @@ // { dg-do run { target c++20 } } // { dg-require-namedlocale "fr_FR.ISO8859-15" } +// { dg-timeout-factor 2 } #include #include diff --git a/libstdc++-v3/testsuite/std/time/month_day/io.cc b/libstdc++-v3/testsuite/std/time/month_day/io.cc index 4dafbb212f6..30aa5881356 100644 --- a/libstdc++-v3/testsuite/std/time/month_day/io.cc +++ b/libstdc++-v3/testsuite/std/time/month_day/io.cc @@ -1,5 +1,6 @@ // { dg-do run { target c++20 } } // { dg-require-namedlocale "fr_FR.ISO8859-15" } +// { dg-timeout-factor 2 } #include #include diff --git a/libstdc++-v3/testsuite/std/time/month_day_last/io.cc b/libstdc++-v3/testsuite/std/time/month_day_last/io.cc index 4f430d4e3e3..c12cee848ed 100644 --- a/libstdc++-v3/testsuite/std/time/month_day_last/io.cc +++ b/libstdc++-v3/testsuite/std/time/month_day_last/io.cc @@ -1,5 +1,6 @@ // { dg-do run { target c++20 } } // { dg-require-namedlocale "fr_FR.ISO8859-15" } +// { dg-timeout-factor 2 } #include #include diff --git a/libstdc++-v3/testsuite/std/time/month_weekday/io.cc b/libstdc++-v3/testsuite/std/time/month_weekday/io.cc index ee841eb1ef1..82cac648905 100644 --- a/libstdc++-v3/testsuite/std/time/month_weekday/io.cc +++ b/libstdc++-v3/testsuite/std/time/month_weekday/io.cc @@ -1,5 +1,6 @@ // { dg-do run { target c++20 } } // { dg-require-namedlocale "fr_FR.ISO8859-15" } +// { dg-timeout-factor 2 } #include #include diff --git a/libstdc++-v3/testsuite/std/time/month_weekday_last/io.cc b/libstdc++-v3/testsuite/std/time/month_weekday_last/io.cc index 96a9ad9bd62..47968d0e06d 100644 --- a/libstdc++-v3/testsuite/std/time/month_weekday_last/io.cc +++ b/libstdc++-v3/testsuite/std/time/month_weekday_last/io.cc @@ -1,5 +1,6 @@ // { dg-do run { target c++20 } } // { dg-require-namedlocale "fr_FR.ISO8859-15" } +// { dg-timeout-factor 2 } #include #include diff --git a/libstdc++-v3/testsuite/std/time/weekday/io.cc b/libstdc++-v3/testsuite/std/time/weekday/io.cc index 6f6a03774fa..5ed90282f95 100644 --- a/libstdc++-v3/testsuite/std/time/weekday/io.cc +++ b/libstdc++-v3/testsuite/std/time/weekday/io.cc @@ -1,5 +1,6 @@ // { dg-do run { target c++20 } } // { dg-require-namedlocale "fr_FR.ISO8859-15" } +// { dg-timeout-factor 2 } #include #include diff --git a/libstdc++-v3/testsuite/std/time/weekday_indexed/io.cc b/libstdc++-v3/testsuite/std/time/weekday_indexed/io.cc index 530138ea839..29255ad5c06 100644 --- a/libstdc++-v3/testsuite/std/time/weekday_indexed/io.cc +++ b/libstdc++-v3/testsuite/std/time/weekday_indexed/io.cc @@ -1,5 +1,6 @@ // { dg-do run { target c++20 } } // { dg-require-namedlocale "fr_FR.ISO8859-15" } +// { dg-timeout-factor 2 } #include #include diff --git a/libstdc++-v3/testsuite/std/time/weekday_last/io.cc b/libstdc++-v3/testsuite/std/time/weekday_last/io.cc index de88ad20540..6f76922195d 100644 --- a/libstdc++-v3/testsuite/std/time/weekday_last/io.cc +++ b/libstdc++-v3/testsuite/std/time/weekday_last/io.cc @@ -1,5 +1,6 @@ // { dg-do run { target c++20 } } // { dg-require-namedlocale "fr_FR.ISO8859-15" } +// { dg-timeout-factor 2 } #include #include diff --git a/libstdc++-v3/testsuite/std/time/year/io.cc b/libstdc++-v3/testsuite/std/time/year/io.cc index f26162d94cf..6157afae253 100644 --- a/libstdc++-v3/testsuite/std/time/year/io.cc +++ b/libstdc++-v3/testsuite/std/time/year/io.cc @@ -1,5 +1,6 @@ // { dg-do run { target c++20 } } // { dg-require-namedlocale "fr_FR.ISO8859-15" } +// { dg-timeout-factor 2 } #include #include diff --git a/libstdc++-v3/testsuite/std/time/year_month/io.cc b/libstdc++-v3/testsuite/std/time/year_month/io.cc index 1b58a9e2468..7bb3442e299 100644 --- a/libstdc++-v3/testsuite/std/time/year_month/io.cc +++ b/libstdc++-v3/testsuite/std/time/year_month/io.cc @@ -1,5 +1,6 @@ // { dg-do run { target c++20 } } // { dg-require-namedlocale "fr_FR.ISO8859-15" } +// { dg-timeout-factor 2 } #include #include diff --git a/libstdc++-v3/testsuite/std/time/year_month_day/io.cc b/libstdc++-v3/testsuite/std/time/year_month_day/io.cc index 636b30592c8..15c5a9f77be 100644 --- a/libstdc++-v3/testsuite/std/time/year_month_day/io.cc +++ b/libstdc++-v3/testsuite/std/time/year_month_day/io.cc @@ -1,5 +1,6 @@ // { dg-do run { target c++20 } } // { dg-require-namedlocale "fr_FR.ISO8859-15" } +// { dg-timeout-factor 2 } #include #include diff --git a/libstdc++-v3/testsuite/std/time/year_month_day_last/io.cc b/libstdc++-v3/testsuite/std/time/year_month_day_last/io.cc index 0dcc1df9fb7..3241536a2e6 100644 --- a/libstdc++-v3/testsuite/std/time/year_month_day_last/io.cc +++ b/libstdc++-v3/testsuite/std/time/year_month_day_last/io.cc @@ -1,5 +1,6 @@ // { dg-do run { target c++20 } } // { dg-require-namedlocale "fr_FR.ISO8859-15" } +// { dg-timeout-factor 2 } #include #include diff --git a/libstdc++-v3/testsuite/std/time/year_month_weekday/io.cc b/libstdc++-v3/testsuite/std/time/year_month_weekday/io.cc index 77fec80cca6..65baf1d37ae 100644 --- a/libstdc++-v3/testsuite/std/time/year_month_weekday/io.cc +++ b/libstdc++-v3/testsuite/std/time/year_month_weekday/io.cc @@ -1,5 +1,6 @@ // { dg-do run { target c++20 } } // { dg-require-namedlocale "fr_FR.ISO8859-15" } +// { dg-timeout-factor 2 } #include #include diff --git a/libstdc++-v3/testsuite/std/time/year_month_weekday_last/io.cc b/libstdc++-v3/testsuite/std/time/year_month_weekday_last/io.cc index 386f86875b3..17f2244420d 100644 --- a/libstdc++-v3/testsuite/std/time/year_month_weekday_last/io.cc +++ b/libstdc++-v3/testsuite/std/time/year_month_weekday_last/io.cc @@ -1,5 +1,6 @@ // { dg-do run { target c++20 } } // { dg-require-namedlocale "fr_FR.ISO8859-15" } +// { dg-timeout-factor 2 } #include #include diff --git a/libstdc++-v3/testsuite/std/time/zoned_time/io.cc b/libstdc++-v3/testsuite/std/time/zoned_time/io.cc index 6f3ed4d4672..376b2734f19 100644 --- a/libstdc++-v3/testsuite/std/time/zoned_time/io.cc +++ b/libstdc++-v3/testsuite/std/time/zoned_time/io.cc @@ -1,5 +1,6 @@ // { dg-do run { target c++20 } } // { dg-require-effective-target cxx11_abi } +// { dg-timeout-factor 2 } #include #include