From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi1-x22f.google.com (mail-oi1-x22f.google.com [IPv6:2607:f8b0:4864:20::22f]) by sourceware.org (Postfix) with ESMTPS id 8FACA38B5BBB; Sun, 18 Dec 2022 03:44:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8FACA38B5BBB 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-oi1-x22f.google.com with SMTP id r130so5381690oih.2; Sat, 17 Dec 2022 19:44:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:references:subject:cc:to :mime-version:user-agent:reply-to:from:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=kDazUJNTNi9LmXT+RruJmJ3mKUtOOatB8vSQoxY2RrA=; b=Y5e5/Jc7PGTwzG+eA8qRZbRaU45IEfpHlf3B284R+3gX0ABm1/NbBCxlRlJfF4rcbw v3C4EZWd4Z5UMrUXM2k2gn8IfBKaawviEfW0T0+ou2Xp1bHp76lUWTty3bDvXbFhzfW6 8KRRoIHn9wkAbMbkzErhsEDkC6icen0MirDjHr7DJve5WaUtecmZNYGD3Ts2tD8r8NMO jMzjvyCwqLinv3qqpg0BCal8OZxhoC9tyWOokcUqscIUdjBoxvMvpt114WdKdu01Gne3 j5zLzFdn39L/dAk/hNaahiOuuspRR+MX9/yJEb5I/14kzQym7qOQUSDYfo3m8XTrWNlY s+FA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:references:subject:cc:to :mime-version:user-agent:reply-to:from:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=kDazUJNTNi9LmXT+RruJmJ3mKUtOOatB8vSQoxY2RrA=; b=tO5BmHbCe8QRFfnEDdYnNK8XbIV/v9fYvvRXboFkxjE0UNBSNJ3vAXjmHRE5Bl8wIV HIS6h8Ghv0l8Go/CFKp1idPgo2QXZ0M7/jnrk+O/uGm6H/nI60yydgOeS8CRTo3qnbeg NdXhHZ9hz1tQyVRh/tzgkah++L5skKCzY/5Wl5uY4G3XBn99go7opdwwhAKYOMQas3y2 JNUbKJkP7eQZv4yBgvi9UBSYNo1BYOowALJJjv4gAFEGq7tg4wYUUd8Tt14T9TNaWhtw B08yOw9+gS1ioULg2KoRsLGg6rNOkydTwMDbDD2ZZIgqJY3uIxOOib0vOaIzNEQ4zznJ Iq7Q== X-Gm-Message-State: AFqh2kq2K7myUJRZOE9cED49aG+spOJQziAOvPJTqHPebYZS+Kj6LSdw Zued5bAK7S1Nw9ds/k26yJQ= X-Google-Smtp-Source: AMrXdXt2l9um2x5DgzivD1Lxt7BAPF2uPbxl9zB+oDyOcGpjVySTYvu9E+N9z6SFf/2/OJm46h0Q6Q== X-Received: by 2002:a05:6808:1525:b0:35c:3e8e:de6e with SMTP id u37-20020a056808152500b0035c3e8ede6emr2421061oiw.22.1671335093784; Sat, 17 Dec 2022 19:44:53 -0800 (PST) Received: from [127.0.0.1] ([70.133.144.146]) by smtp.gmail.com with ESMTPSA id bh19-20020a056830381300b0066871c3adb3sm2902938otb.28.2022.12.17.19.44.52 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 17 Dec 2022 19:44:53 -0800 (PST) Message-ID: <639E8CB3.4030109@gmail.com> Date: Sat, 17 Dec 2022 21:44:51 -0600 From: Jacob Bachmeyer Reply-To: jcb62281@gmail.com User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.22) Gecko/20090807 SeaMonkey/1.1.17 Mnenhy/0.7.6.0 MIME-Version: 1.0 To: NightStrike CC: Thomas Koenig , "fortran@gcc.gnu.org" , gcc mailing list , dejagnu@gnu.org Subject: Re: testsuite under wine References: <3f62bac2-ac1b-5c55-2488-ede2389d35d2@netcologne.de> <19a6b738-ad34-d145-1202-d2c7c474b272@netcologne.de> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: NightStrike wrote: > On Sat, Dec 17, 2022 at 5:52 AM Thomas Koenig wrote: > >> On 17.12.22 01:26, NightStrike wrote: >> >>> On Fri, Dec 16, 2022 at 1:44 AM Thomas Koenig wrote: >>> >>>> On 16.12.22 03:20, NightStrike via Fortran wrote: >>>> >>>> >>>>> When I run the testsuite under wine, I'm getting a lot of ANSI escape >>>>> sequences. We had fixed this long ago, but it seems to be back. Any >>>>> idea what I should change in my configuration to have this not happen? >>>>> >>>> This should probably be fixed properly in some *.exp file, but you can >>>> try setting the GCC_COLORS environment variable to an empty string >>>> before running the test. >>>> >>> That didn't help. It looks like this is always escape 25h to start >>> the output and 25l to end it, which I think is turning the cursor on >>> and off (based on https://en.wikipedia.org/wiki/ANSI_escape_code). I >>> apparently fixed this previously by building wine with >>> --without-curses >>> (https://www.mail-archive.com/gcc@gcc.gnu.org/msg86366.html), but that >>> option to wine was removed. Is there a way to hack this on the Deja >>> side to ignore the escapes? Or to tell it to run in a way that makes >>> wine not emit them? >>> >> Truth is, I don't know. >> >> I have included the gcc mailing list in this reply, where more >> knowledgeable people can be found :-) >> > > Thanks. I'm including the dejagnu list, maybe someone there can help, too. > > For clarity, this is an example of what I see: > > Output was: > ^[[mM^[[?25h^[[?25ly^[[?25h^[[?25l_^[[?25h^[[?25lR^[[?25h^[[?25l1^[[?25h^[[?25l^[[K^[[1C^[[?25h^[[?25l^[[K^[[1C^[[?25h^[[?25l^[[K^[[1C^[[?25h^[[?25l^[[K^[[1C^[[?25h^[[?25l:^[[?25h^[[?25l^[[K^[[1C^[[?25h^[[?25l7^[[ > ?25h^[[?25l8^[[?25h^[[?25l^[[K^[[1C^[[?25h^[[?25l5^[[?25h^[[?25l6^[[?25h^[[?25l^[[K^[[1C^[[?25h^[[?25l3^[[?25h^[[?25l4^[[?25h^[[?25l^[[K^[[1C^[[?25h^[[?25l1^[[?25h^[[?25l2^[[?25h^M^M > ^[[?25lM^[[?25h^[[?25ly^[[?25h^[[?25l_^[[?25h^[[?25lR^[[?25h^[[?25l2^[[?25h^[[?25l^[[K^[[1C^[[?25h^[[?25l^[[K^[[1C^[[?25h^[[?25l^[[K^[[1C^[[?25h^[[?25l^[[K^[[1C^[[?25h^[[?25l:^[[?25h^[[?25l^[[K^[[1C^[[?25h^[[?25l1 > ^[[?25h^[[?25l2^[[?25h^[[?25l^[[K^[[1C^[[?25h^[[?25l3^[[?25h^[[?25l4^[[?25h^[[?25l^[[K^[[1C^[[?25h^[[?25l5^[[?25h^[[?25l6^[[?25h^[[?25l^[[K^[[1C^[[?25h^[[?25l7^[[?25h^[[?25l8^[[?25h^M^M > ^[[?25lL^[[?25h^[[?25lo^[[?25h^[[?25lc^[[?25h^[[?25la^[[?25h^[[?25ll^[[?25h^[[?25l_^[[?25h^[[?25lR^[[?25h^[[?25l1^[[?25h^[[?25l^[[K^[[1C^[[?25h^[[?25l:^[[?25h^[[?25l^[[K^[[1C^[[?25h^[[?25l7^[[?25h^[[?25l8^[[?25h^[ > [?25l^[[K^[[1C^[[?25h^[[?25l5^[[?25h^[[?25l6^[[?25h^[[?25l^[[K^[[1C^[[?25h^[[?25l3^[[?25h^[[?25l4^[[?25h^[[?25l^[[K^[[1C^[[?25h^[[?25l1^[[?25h^[[?25l2^[[?25h^M^M > ^[[?25lL^[[?25h^[[?25lo^[[?25h^[[?25lc^[[?25h^[[?25la^[[?25h^[[?25ll^[[?25h^[[?25l_^[[?25h^[[?25lR^[[?25h^[[?25l2^[[?25h^[[?25l^[[K^[[1C^[[?25h^[[?25l:^[[?25h^[[?25l^[[K^[[1C^[[?25h^[[?25l1^[[?25h^[[?25l2^[[?25h^[ > [?25l^[[K^[[1C^[[?25h^[[?25l3^[[?25h^[[?25l4^[[?25h^[[?25l^[[K^[[1C^[[?25h^[[?25l5^[[?25h^[[?25l6^[[?25h^[[?25l^[[K^[[1C^[[?25h^[[?25l7^[[?25h^[[?25l8^[[?25h^M^M > ^[[?25lL^[[?25h^[[?25lo^[[?25h^[[?25lc^[[?25h^[[?25la^[[?25h^[[?25ll^[[?25h^[[?25l_^[[?25h^[[?25lR^[[?25h^[[?25l1^[[?25h^[[?25l^[[K^[[1C^[[?25h^[[?25l:^[[?25h^[[?25l^[[K^[[1C^[[?25h^[[?25l7^[[?25h^[[?25l8^[[?25h^[ > [?25l^[[K^[[1C^[[?25h^[[?25l5^[[?25h^[[?25l6^[[?25h^[[?25l^[[K^[[1C^[[?25h^[[?25l3^[[?25h^[[?25l4^[[?25h^[[?25l^[[K^[[1C^[[?25h^[[?25l1^[[?25h^[[?25l2^[[?25h^M^M > ^[[?25lL^[[?25h^[[?25lo^[[?25h^[[?25lc^[[?25h^[[?25la^[[?25h^[[?25ll^[[?25h^[[?25l_^[[?25h^[[?25lR^[[?25h^[[?25l2^[[?25h^[[?25l^[[K^[[1C^[[?25h^[[?25l:^[[?25h^[[?25l^[[K^[[1C^[[?25h^[[?25l1^[[?25h^[[?25l2^[[?25h^[ > [?25l^[[K^[[1C^[[?25h^[[?25l3^[[?25h^[[?25l4^[[?25h^[[?25l^[[K^[[1C^[[?25h^[[?25l5^[[?25h^[[?25l6^[[?25h^[[?25l^[[K^[[1C^[[?25h^[[?25l7^[[?25h^[[?25l8^[[?25h^M^M > ^[[?25lL^[[?25h^[[?25lo^[[?25h^[[?25lc^[[?25h^[[?25la^[[?25h^[[?25ll^[[?25h^[[?25l_^[[?25h^[[?25lR^[[?25h^[[?25l1^[[?25h^[[?25l^[[K^[[1C^[[?25h^[[?25l:^[[?25h^[[?25l^[[K^[[1C^[[?25h^[[?25l7^[[?25h^[[?25l8^[[?25h^[ > [?25l^[[K^[[1C^[[?25h^[[?25l5^[[?25h^[[?25l6^[[?25h^[[?25l^[[K^[[1C^[[?25h^[[?25l3^[[?25h^[[?25l4^[[?25h^[[?25l^[[K^[[1C^[[?25h^[[?25l1^[[?25h^[[?25l2^[[?25h^M^M > ^[[?25lL^[[?25h^[[?25lo^[[?25h^[[?25lc^[[?25h^[[?25la^[[?25h^[[?25ll^[[?25h^[[?25l_^[[?25h^[[?25lR^[[?25h^[[?25l2^[[?25h^[[?25l^[[K^[[1C^[[?25h^[[?25l:^[[?25h^[[?25l^[[K^[[1C^[[?25h^[[?25l1^[[?25h^[[?25l2^[[?25h^[ > [?25l^[[K^[[1C^[[?25h^[[?25l3^[[?25h^[[?25l4^[[?25h^[[?25l^[[K^[[1C^[[?25h^[[?25l5^[[?25h^[[?25l6^[[?25h^[[?25l^[[K^[[1C^[[?25h^[[?25l7^[[?25h^[[?25l8^[[?25h^M^M > ^M^M > > Should match: > My_R1 : 78 56 34 12.* > My_R2 : 12 34 56 78.* > Local_R1 : 78 56 34 12.* > Local_R2 : 12 34 56 78.* > Local_R1 : 78 56 34 12.* > Local_R2 : 12 34 56 78.* > Local_R1 : 78 56 34 12.* > Local_R2 : 12 34 56 78.* > DejaGnu cannot routinely strip escape sequences because they could be part of the intended output---or strictly forbidden in the intended output. Further, I suspect that the comparison is being carried out in the testsuite code rather than the framework, but the thread that arrived on the DejaGnu list does not mention what test is failing or what testsuite is being run. Based on the inclusion of fortran@gcc.gnu.org, I am guessing this is an issue with the GNU Fortran tests. This is either a testsuite problem or an environment problem. The GNU Fortran I/O module certainly has interesting behavior here. Try setting TERM=dumb in the environment while running the testsuite. If that fixes the problem, it may be appropriate to add "set ::env(TERM) dumb" to the tool init file for GNU Fortran. -- Jacob