From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.devel Subject: Re: Arranging for windows of particular dimensions in xdisp-tests Date: Tue, 30 Jan 2024 22:41:59 -0800 Message-ID: <2d3cbbc5-de61-3fdd-e7dc-222f8adb4456@gmail.com> References: <87eddyf27s.fsf.ref@yahoo.com> <87eddyf27s.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37907"; mail-complaints-to="usenet@ciao.gmane.io" To: Po Lu , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jan 31 07:43:04 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rV4JL-0009hQ-AQ for ged-emacs-devel@m.gmane-mx.org; Wed, 31 Jan 2024 07:43:03 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rV4IN-0002Fg-M5; Wed, 31 Jan 2024 01:42:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rV4IM-0002FY-K8 for emacs-devel@gnu.org; Wed, 31 Jan 2024 01:42:02 -0500 Original-Received: from mail-ot1-x32b.google.com ([2607:f8b0:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rV4IK-0007tO-TS for emacs-devel@gnu.org; Wed, 31 Jan 2024 01:42:02 -0500 Original-Received: by mail-ot1-x32b.google.com with SMTP id 46e09a7af769-6e141ee9c14so546307a34.3 for ; Tue, 30 Jan 2024 22:42:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706683320; x=1707288120; darn=gnu.org; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=C5cZH2BmJrXnkDdloSgS34jAMHf1wQCZ8SdSS7l+ZKc=; b=EW83PkPzY5RcAi7C4pJ02EWkBl/apNGq4tgHEXqiApLny9sa9GEPHik5dDGIRdM14m mtiEdaziZw52UbqWzq4iJkugDWva6CK0n+mRUQ7xjiMfFRHj363+CIfLES3ujZImKwra B+tjppjC1M6z7zztHsnFUcxYlPJofSMZpc3PrDkX2kvbsdihw5p6EMqr1Y4b34spicSd /aJOimRdg3tnj8MjCsh1mY3Migzv44EQb8gziugmVdsF/onil1htHw2FoCQKAJfq6JFr zaCbnNlHpM+DqmvAi2N72vDOCearv5WYj9VhdqUXPq3j/zt4m9LUDdinmOOBtl0Lct44 bcWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706683320; x=1707288120; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=C5cZH2BmJrXnkDdloSgS34jAMHf1wQCZ8SdSS7l+ZKc=; b=hAnIspegZolq/Dwo1ilmTXBtnjtnv0mD5W/TCNNVSDQRzo7O7av/oaMbzndjqndwtA /yTki1f9IYWimDRARdxNZNWibhj/7jsyTwpvRzY/uD5KdrKt46latdtTlP5S+VUixLtn nX4o+6whou8y7Ydi8k5jdF+RbYeJepRUsrrInwkWoFuyg0bzJojHIzdz8ADbilNQiU4c QXSzdwTLMPptv4M0MLr7ZPG6v3JA7dBJT7KdDetJ86+59wdxsYbF11vSvqn81E/Z0aua 0W1vKRqWL3z7YbEkF52Bbw0/xaXF8YiN3faJke5MB7DT3yx4SvAiydq2w/fT2JjWp7t3 fwrg== X-Gm-Message-State: AOJu0Yx3x8am0b5Q5JXjhNotYpZtseWHCUR41BjQ1CHr6omO0i4Itc+C A3DPC1hY5FXHGfZ5eU8xqlYjeucSsGQFkWr+H1cw4jkMTpAjwABc X-Google-Smtp-Source: AGHT+IGpK2s/QLesrTREdmOIuEGEHEPY6NGmWGTAYt2yOqrV4uUcXyeRYdq3PStmDX65iuuD2s5zlQ== X-Received: by 2002:a05:6830:4406:b0:6dd:e26c:103f with SMTP id q6-20020a056830440600b006dde26c103fmr759734otv.64.1706683319878; Tue, 30 Jan 2024 22:41:59 -0800 (PST) Original-Received: from [192.168.1.2] (076-168-148-233.res.spectrum.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id b2-20020a056a00114200b006dde18ed7dbsm9264121pfm.170.2024.01.30.22.41.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 30 Jan 2024 22:41:59 -0800 (PST) Content-Language: en-US In-Reply-To: <87eddyf27s.fsf@yahoo.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::32b; envelope-from=jporterbugs@gmail.com; helo=mail-ot1-x32b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:315657 Archived-At: On 1/30/2024 10:26 PM, Po Lu wrote: > I've just fixed several hangs in redisplay arising from `display' > objects' being denied sufficient space by a line or wrap prefix, and > consequently continuation lines being produced in an endless cycle > inside move_it_to and display_line. Needless to say, tests for such > bugs require that the windows where they execute be set to a particular > size, which, considering that ERT tests are expected to run in both > interactive sessions and in the initial frame, appears to be impossible. > > Ideas? Thanks in advance. The easiest might be to skip the test when it can't be run (or fail the test if you want to be noisier about it). I suppose you could also spawn a second, entirely-separate Emacs instance to test this part, although I'm not sure I'd *recommend* doing that. In theory though, you could start up that second Emacs and pass it a script to run, exiting with zero if the test succeeded.