From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#51941: Detect duplication of ERT tests Date: Wed, 24 Nov 2021 17:29:02 +0800 Message-ID: <87fsrlc36p.fsf@localhost> References: <21CD2DED-354E-4C46-9794-07172E3BD5F1@acm.org> <87fsrtkayn.fsf@gnus.org> <87lf1eau3l.fsf@localhost> <5AA13574-8ED8-450E-8F92-1C374A2717AB@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12449"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51941@debbugs.gnu.org, Lars Ingebrigtsen To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 24 10:28:25 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1mpoZl-0002zU-BC for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 24 Nov 2021 10:28:25 +0100 Original-Received: from localhost ([::1]:45720 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mpoZi-0006Wb-JP for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 24 Nov 2021 04:28:22 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55616) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mpoZQ-0006UM-NN for bug-gnu-emacs@gnu.org; Wed, 24 Nov 2021 04:28:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41611) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mpoZO-0006Nn-MO for bug-gnu-emacs@gnu.org; Wed, 24 Nov 2021 04:28:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mpoZO-0007sU-8x for bug-gnu-emacs@gnu.org; Wed, 24 Nov 2021 04:28:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Nov 2021 09:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51941 X-GNU-PR-Package: emacs Original-Received: via spool by 51941-submit@debbugs.gnu.org id=B51941.163774606530254 (code B ref 51941); Wed, 24 Nov 2021 09:28:02 +0000 Original-Received: (at 51941) by debbugs.gnu.org; 24 Nov 2021 09:27:45 +0000 Original-Received: from localhost ([127.0.0.1]:53155 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mpoZ7-0007rt-DV for submit@debbugs.gnu.org; Wed, 24 Nov 2021 04:27:45 -0500 Original-Received: from mail-ed1-f44.google.com ([209.85.208.44]:42526) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mpoZ5-0007rg-PC for 51941@debbugs.gnu.org; Wed, 24 Nov 2021 04:27:44 -0500 Original-Received: by mail-ed1-f44.google.com with SMTP id r11so7371641edd.9 for <51941@debbugs.gnu.org>; Wed, 24 Nov 2021 01:27:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=6Nh6phDfvoabsGLxt0ZJKC4DZ9E+KBNQlG7AqZ70nBg=; b=XJF4GpDd314DW0H62AIY325VEy4oi0ohtl7D0ivGHGB2J1u0pXgjQ/9sl/C2FC8zEL NmRbXkazBaGG5boOJoULwahM5gTaHVWRZnkbNiPkly/tJLfZLC9eYozJdIWv8xIqafN8 N3KIVvqGYe5dKr7uied6NgsJlau+bczYAu4WxV9bozqkfC7vEWYbCY9PrqzvUj9l2v06 nuVNSQTpXzhtV3OGd/av1h7Jhp/QUVPJ8cK9JgX25/SpwBePrmiyuLUS1C9JlGgGfhJ4 ckGihtE+IGLLAUtHMd9Hbxsh0c8Ef45V3Vhjo7D2IszM84I8pTyzkYEjzpbauUa3FrCA YEzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=6Nh6phDfvoabsGLxt0ZJKC4DZ9E+KBNQlG7AqZ70nBg=; b=m2XKn3ddc+cBDkNkwwr+2P1NiEAyNt+MsV3Q5sTu4wbKcI47MDqbQ1LPiu6vHbnK+8 grbvMop7W1Sp7WHT8i1I24JTKQGQ77Hw5WTp0Hp4SswVYcmUlYF6xKTICMqX2uxWvjSf tfuuAd654y4wY1ZKLyxvH/mEGR4n8yHF2W8sCjonSMuFVVhnLXYoyqKCvWXnzYU/9vuv WHJTxBh0XbQNivjJwvckJ3xznXLmYvIRB/OCqaDi30bEWv1IqkmqCBEO7XVp3K7N7wFm DGXsAgWC4hTsG+Td5UrI3A7dW3jFcMH98tNPQ+ww3QumfXb9ubVAtoo1vOzxPvWbAg/S MOBg== X-Gm-Message-State: AOAM532TcI/7IpGn9FfMlwrBaL2ucczhBI52xjO6jxUJJPYIR2on8v6b s9iF1oALrtUOVzG4WeV9LE4= X-Google-Smtp-Source: ABdhPJxlGmWxNM7tYCN4jeeRxRRaoKuSdm/3soOA/Uy150aK6yW/fDN47FSqiCnrUEueDtI1no98VA== X-Received: by 2002:a17:906:a1da:: with SMTP id bx26mr18207978ejb.558.1637746057763; Wed, 24 Nov 2021 01:27:37 -0800 (PST) Original-Received: from localhost ([141.105.67.194]) by smtp.gmail.com with ESMTPSA id v3sm7779673edc.69.2021.11.24.01.27.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Nov 2021 01:27:37 -0800 (PST) In-Reply-To: <5AA13574-8ED8-450E-8F92-1C374A2717AB@acm.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:220718 Archived-At: Mattias Engdeg=C3=A5rd writes: > 24 nov. 2021 kl. 08.30 skrev Ihor Radchenko : > >> This change breaks test code when a test file is "required" multiple >> times. In particular, Org mode tests cannot run with latest Emacs. > > We'll have to do something about that then. Would you tell me more precis= ely what those Org tests do and why? > ('require' is supposed to be idempotent; maybe you are missing a 'provide= ' somewhere?) In Org 9.5, we have test-oc.el. That file requires a macro defined in test-ox.el: In test-oc.el: ;; We need `org-test-with-parsed-data' macro. (require 'test-ox "../testing/lisp/test-ox.el") The load sequence is: 1. load-file test-oc 1.1. test-oc requires test-ox 2. load file test-ox triggers error: Debugger entered--Lisp error: (error "Test =E2=80=98test-org-export/bind= -keyword=E2=80=99 redefined") Hope it helps. Best, Ihor