From patchwork Fri Dec 15 00:02:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 178985 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:3b04:b0:fb:cd0c:d3e with SMTP id c4csp8961554dys; Thu, 14 Dec 2023 17:05:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IEqzaUu91xvVBtkpCeGGe1sUPKp2NYTPPJResdl7t5s98L0yemBDX8k+TfE/F9M0CrUcXiq X-Received: by 2002:a05:620a:6605:b0:77f:4ef:cbc1 with SMTP id qf5-20020a05620a660500b0077f04efcbc1mr12544315qkn.48.1702602357393; Thu, 14 Dec 2023 17:05:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1702602357; cv=pass; d=google.com; s=arc-20160816; b=cwRO9U+IfQy39fxcUpgezqHBSb+j3cs9i2OEIB8Y78GlCg0YNLbHdkF+0UOD1hSRW6 hzuJX5fZ0cFEU0hiagR3h7F7vYCVuu26fgN7IKmpy4OCUmZl31qTzWMAcFMIt3QWE3qr fg76ZAQ64Icym8o8N2b9++yB5Fd1tAh+gWyYWHLDJxmBMWDW5Wtmt1HJDNyrix8hoy7E F7nlwSSh9MRhQ07l8WCSaO3EctvHgxNps6yJCeQjBp0BpojLuJrtCVStpWbcsaesRfKD KJOBK4/j61tgSHbncfFDlvhXnmu+gTqD4cxi5JZSezOLn73KvgQoh1nhRppLv9TrkEn/ mipg== 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=JTh8Ik6qzTJ5u+9987UT9YU2EtAdoda6zLdPGc+m4Pw=; fh=sJ+2/4g29YdyXkoRrFZSpsL2zxijepB7X/1rB0LDDh8=; b=q9UVXTj6acro5L7XZHLJHEIYg44kV7BFZhm99b+x8b6einMr2nkEn0SWV/iGIs1j9S jB0yr7qzIzvP3yhSb+wbjaN5wLXAAGGrO90YGfxVHMbFJVOQaA0LncF7w5mBgs/xeRe3 yxR99EUZWL9OH8ajq9bCV8vdaDjW0j1Lb7Tu/nPqnzSZ10lEPX85XP19x/RXGlKY3SFA 6jxsJ7v+Lkpm5OED4KEhRBL+AjuCcFVqNVl3x4avQwFctKpt35+oZSm09k4JBIwGwc5J bsYNN5g4gW6s919YqXiqqlnxrr941fJvM9RQcvONSIznBj/tptvcnrBjdSarTpqYMCsa Vwew== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Ix6Gzje1; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id dc51-20020a05620a523300b0077f445f685dsi15555038qkb.656.2023.12.14.17.05.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 17:05:57 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Ix6Gzje1; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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 0166D3871030 for ; Fri, 15 Dec 2023 00:02:46 +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 D41ED3861858 for ; Fri, 15 Dec 2023 00:02:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D41ED3861858 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 D41ED3861858 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=1702598540; cv=none; b=Sh3G8ALUMSqnCqqSOct0Dh524HdDEnw8d7xw6wONDWMCpeVGrxtsre8JVhMFFfDLoGQJmyrIOEJNC0sKsJodqtLokQTcAukxt2Cb07Fjy+gIczKyaeRgugv0K0x/t6/Y4x79YQHG4PPOEg+9URb87HbNZQICGHWxPXamfv6MjWM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702598540; c=relaxed/simple; bh=MxMhqscsYs7V4RwdWudcRw8Wsy43N1eCwFDzHF0ICik=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=EFbOAZNEUcHhHullWOcjjHxh8z3Hh7LfZtzBToorPwKwen7sa9VbzykPr+0R0FpMuc+WFTXprngkN0MNC3rj6XzS63tXw/225FJ7EMretQtqI7YenXnwe2OJXmj1I/pspOTaDvOET1/R/iF5ET1hUT703D3K595F5UPQEUkEnt0= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1702598539; 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=JTh8Ik6qzTJ5u+9987UT9YU2EtAdoda6zLdPGc+m4Pw=; b=Ix6Gzje1F0IfnKeHFocc85m1iLAEB9CuSHj7CCY64uThB7Rt7kCnlZxttYmspXEuSAJBZz H/FTAP+UyhuSK+s/txIJLvYTj4j4jwf3DyOA/uZ3KeVSVaJhq+lh2lFV3eWaB2fXUeXSIf rhHFKrPOt4rzhKKtKnnb75lUmfPv+4k= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-562-Y0wT59W2OXWGpoM7je1QKQ-1; Thu, 14 Dec 2023 19:02:17 -0500 X-MC-Unique: Y0wT59W2OXWGpoM7je1QKQ-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (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 33B4B28EC100; Fri, 15 Dec 2023 00:02:17 +0000 (UTC) Received: from localhost (unknown [10.42.28.145]) by smtp.corp.redhat.com (Postfix) with ESMTP id F2D4A2166B32; Fri, 15 Dec 2023 00:02:16 +0000 (UTC) From: Jonathan Wakely To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [committed] libstdc++: Add dg-output to two tests Date: Fri, 15 Dec 2023 00:02:09 +0000 Message-ID: <20231215000216.2068946-1-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.6 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-13.4 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, T_SCC_BODY_TEXT_LINE 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: 1785307969422614113 X-GMAIL-MSGID: 1785307969422614113 Tested x86_64-linux. Pushed to trunk. -- >8 -- These tests are expected to run interactively, with the output checked by eye. Nobody ever does that, but we can at least use dg-output to check that the output is as expected. libstdc++-v3/ChangeLog: * testsuite/27_io/objects/char/2.cc: Use dg-output. * testsuite/27_io/objects/wchar_t/2.cc: Use dg-output. --- libstdc++-v3/testsuite/27_io/objects/char/2.cc | 2 ++ libstdc++-v3/testsuite/27_io/objects/wchar_t/2.cc | 2 ++ 2 files changed, 4 insertions(+) diff --git a/libstdc++-v3/testsuite/27_io/objects/char/2.cc b/libstdc++-v3/testsuite/27_io/objects/char/2.cc index b6c49bac6f3..9026a3cbad8 100644 --- a/libstdc++-v3/testsuite/27_io/objects/char/2.cc +++ b/libstdc++-v3/testsuite/27_io/objects/char/2.cc @@ -38,6 +38,8 @@ void test04() cout.flush(); } +// { dg-output "hello fine world" } + int main() { diff --git a/libstdc++-v3/testsuite/27_io/objects/wchar_t/2.cc b/libstdc++-v3/testsuite/27_io/objects/wchar_t/2.cc index 52a21b8dc22..2e47aba7c3c 100644 --- a/libstdc++-v3/testsuite/27_io/objects/wchar_t/2.cc +++ b/libstdc++-v3/testsuite/27_io/objects/wchar_t/2.cc @@ -38,6 +38,8 @@ void test04() wcout.flush(); } +// { dg-output "hello fine world" } + int main() {