From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id IIweHJjms2R+RgAASxT56A (envelope-from ) for ; Sun, 16 Jul 2023 14:46:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id EAYfG5jms2Ty4AAAG6o9tA (envelope-from ) for ; Sun, 16 Jul 2023 14:46:16 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B803848659 for ; Sun, 16 Jul 2023 14:46:15 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lipklim.org header.s=key1 header.b=Y5V25Ztx; dmarc=pass (policy=quarantine) header.from=lipklim.org; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1689511576; a=rsa-sha256; cv=none; b=ne+lmo6FRaSiui7a9JCcHuznZ6o0Ip8nbLev30IjWoy8Paj4f/ic5k5fp+oYKiJgAHHIaf BNxe7STAQZh9mi/grHlv5ygmIoTtCzvOhtFWA+btuy9gnAbrV0tiERiauHqv6Rh6qBNaIc TNTyHyLrSZMosn8zgY/QFKtIgBnjvlIuyXKcAglPmhNon/xjuIFICZ2M0Vl0Y6G8jJS0P1 Ff/2UKWbEWbo2ZB82fZXKUoXKAriQQrjVrRu3rDcYMMe62ZyRNqE2cWo5tudO3oJHpK9ni mTeu6xzN30SheeRn1bcKJrQHy76+jVZqM39wptlSMofsgBC02Yb1bvxYYos79g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=lipklim.org header.s=key1 header.b=Y5V25Ztx; dmarc=pass (policy=quarantine) header.from=lipklim.org; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1689511576; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=2f8n+8tsa/CQLK/ttv+YuQxruBe1qVTFxzOe8G3DznM=; b=SWtoGbNIrwZUkQZ+sq8ubnGn+TjKz0x3Yk9ff8iwNCHhXpMob0zLBFEphc0ZOvS8EnvTVU ec+T3RjrpfarC26wcIDITgGgnbzy8g9aPR+Fsuu5rmixLXG2o9aWQWpc0ty9UnhXp3ovWo SXAnFsCBIWGZtZH4PifMgCkqrZkrnhS/Dtt5nTEmZnINpyoh4beqfZIFopbVdvEaIyTbf+ rMun4qbqDD4+7HgOphfkls3KyTNwgqbwkESxMibc+iTSdvbYfF9bmS8VUxJ/ACOAennd0v hn1m1a/OVXrVxQ1XmugWEWfIIp7m8fe70Vah2I21EVUTnkfnOHMxJRy8pxhCUw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qL17z-0000R8-6r; Sun, 16 Jul 2023 08:45:31 -0400 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 1qL17u-0000QJ-CT for emacs-orgmode@gnu.org; Sun, 16 Jul 2023 08:45:27 -0400 Received: from out-2.mta0.migadu.com ([2001:41d0:1004:224b::2]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qL17q-0000eJ-LV for emacs-orgmode@gnu.org; Sun, 16 Jul 2023 08:45:25 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lipklim.org; s=key1; t=1689511516; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=2f8n+8tsa/CQLK/ttv+YuQxruBe1qVTFxzOe8G3DznM=; b=Y5V25ZtxLHno9UbHpsLcHr4/dJm2H599G/M2XiVV0WiC/C3hsYywZn2gcU5VzJglbEw6ap qdyYMFWYidk62Q0r+OPAcRFhT2bgxl4vuYd1FFP+ksOre+Yw1/GBp99TN0LoIkRHR3jAdj OnQiHmYgGCoJHJU7AUjRCnT8AvW5Un8= From: Evgenii Klimov To: "emacs-orgmode@gnu.org" Subject: [BUG] [PATCH] Avoid interaction in test ~ob-tangle/detangle-false-positive~ Date: Sun, 16 Jul 2023 13:36:06 +0100 Message-ID: <87zg3wauug.fsf@lipklim.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2001:41d0:1004:224b::2; envelope-from=eugene.dev@lipklim.org; helo=out-2.mta0.migadu.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, 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-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -9.60 X-Migadu-Scanner: mx2.migadu.com X-Spam-Score: -9.60 X-Migadu-Queue-Id: B803848659 X-TUID: 7oPCsIFuVQkb --=-=-= Content-Type: text/plain Test ~ob-tangle/detangle-false-positive~ asks for confirmation to kill the buffer, connected to testing/examples/babel.org file, that is modified during the couse of the test. Way to reproduce the bug (from projects main dir): #+BEGIN_SRC sh :dir (expand-file-name ".") emacs -Q \ -L lisp/ -L testing/ -L testing/lisp -l lisp/org.el \ -l lisp/org-id.el -l testing/org-test.el -l testing/lisp/test-ob-tangle.el \ --eval "(progn (org-reload) (setq org-confirm-babel-evaluate nil) \ (org-babel-do-load-languages 'org-babel-load-languages \ '((emacs-lisp . t) (shell . t) (org . t))))" \ --eval '(ert "ob-tangle/detangle-false-positive")' #+END_SRC --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-testing-lisp-test-ob-tangle.el-Avoid-interaction-in-.patch >From 5905e37a581d4cf2a4a517593c91730d836b6471 Mon Sep 17 00:00:00 2001 From: Evgenii Klimov Date: Sun, 16 Jul 2023 13:14:38 +0100 Subject: [PATCH] testing/lisp/test-ob-tangle.el: Avoid interaction in test * testing/lisp/test-ob-tangle.el (ob-tangle/detangle-false-positive): Unset modification flag from buffer to kill (testing/examples/babel.org) in tear down step of test to avoid Emacs asking for confirmation during interactive testing from within Emacs. --- testing/lisp/test-ob-tangle.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testing/lisp/test-ob-tangle.el b/testing/lisp/test-ob-tangle.el index b1b0a0a53..07e75f4d3 100644 --- a/testing/lisp/test-ob-tangle.el +++ b/testing/lisp/test-ob-tangle.el @@ -565,6 +565,8 @@ another block (should (equal (string-trim (org-element-property :value (org-element-at-point))) ";; detangle changes")))) + (with-current-buffer buffer + (set-buffer-modified-p nil)) (kill-buffer buffer)))) (provide 'test-ob-tangle) -- 2.34.1 --=-=-=--