From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id 4FaHGStpM2acXgAA62LTzQ:P1 (envelope-from ) for ; Thu, 02 May 2024 12:21:31 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 4FaHGStpM2acXgAA62LTzQ (envelope-from ) for ; Thu, 02 May 2024 12:21:31 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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=1714645291; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=0KOY1W0CtUU7OGenq7QF7mVLiRf7mVF0U4CZyH67jzk=; b=qdbV7NhL/ZnLpwH82qQ6izX86qucTUCo0WIK4Dxuk8pcKfxMq940FqekTmhGdSWWbt7aug kH0ZX33NELDWMsunQSOJaSLATm2OS7pShW2yX7vrHBcez7p9wXXcOO1mmQztN3Uxc0CzCA hliROfmIz45pYJrPCp0T2g/OoeLXB7JP9lq8xe1ar/WlH9LzqQ8FLff0DY2rDCnjYU5w+m IaEx4KWhkEeyFn4MXxsvzNJ8Rv/CBSjrEFYuwYyKADhW5BFMq+70afNFokrgsWmZDzqfFG qlpK3oLlQOXoizAO8RJCA8O4bjX5I4z3EW2BwbOBPOw74w4vlrpEcSPAqd0LDg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1714645291; a=rsa-sha256; cv=none; b=FUcWxQGplkUvWFQd60FvsovqnjbymIsNA4dCYSotIGtVxKQTd6NEl59w+f+VCcZpS8HGX8 3bTPgZqLjoPu1djZ4oieg0B6Umo8cSJTdzzdwf3nwAAHfdG1KenErvGDbE5GGcbgoXEIuB imJh2/uCBPVNX675YiYqP3JSJ8Pss2Jrr9wff/XFBfwI/u1nY6GywWyYvKUL8CEWSVWXtg pS6X5ByiHyEI1WFyQ1+/k9/DkNvWl6eVtrJb1GSeeCFu7vT/GTv8IQ42BSjUykC2n6jBJn A/H5dOJxT35Xxj7J+3xLrJ2uu4q1FEIdlDBhdkrqK88GHfGvIR/4rcbBfkunBg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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" 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 1CAA767F00 for ; Thu, 02 May 2024 12:21:31 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s2TYd-000277-5u; Thu, 02 May 2024 06:20:55 -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 1s2TYa-00026P-8m for emacs-orgmode@gnu.org; Thu, 02 May 2024 06:20:53 -0400 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s2TYW-00059f-GN for emacs-orgmode@gnu.org; Thu, 02 May 2024 06:20:50 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1s2TYT-0005ZF-V8 for emacs-orgmode@gnu.org; Thu, 02 May 2024 12:20:45 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: [PATCH] test-ob-shell.el: Skip based on feature detection Date: Thu, 2 May 2024 17:20:39 +0700 Message-ID: References: <486d2b818b62c71b3f307305c06c4318@condition-alpha.com> <871q7cypxl.fsf@localhost> <00aa9bf72dc93f6554bdd236fdfba192@condition-alpha.com> <87y19hbb05.fsf@localhost> <8b72386d118136210f27b553f0a13066@condition-alpha.com> <87cyqtyzgt.fsf@localhost> <91dfeb0fed1a1fe0564e5eb9b95a409d@condition-alpha.com> <875xw6ex9h.fsf@localhost> <93ff1be3-70c3-471b-be75-4b016bee6827@gmail.com> <87o79wv0sc.fsf@localhost> <871q6pk4x3.fsf@localhost> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------rWlQnRisum8k0Xr9e0TErR7w" User-Agent: Mozilla Thunderbird Content-Language: en-US, ru-RU In-Reply-To: <871q6pk4x3.fsf@localhost> Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 26 X-Spam_score: 2.6 X-Spam_bar: ++ X-Spam_report: (2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: -1.68 X-Spam-Score: -1.68 X-Migadu-Queue-Id: 1CAA767F00 X-Migadu-Scanner: mx11.migadu.com X-TUID: 1a0J1ZbgxQM2 This is a multi-part message in MIME format. --------------rWlQnRisum8k0Xr9e0TErR7w Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 28/04/2024 20:11, Ihor Radchenko wrote: >>> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=e4ab416fc > Max Nikulin writes: >> Feature detection should be more reliable. [...] > > Feel free to submit a patch. See the attachment. --------------rWlQnRisum8k0Xr9e0TErR7w Content-Type: text/x-patch; charset=UTF-8; name="0001-test-ob-shell.el-Skip-based-on-feature-detection.patch" Content-Disposition: attachment; filename*0="0001-test-ob-shell.el-Skip-based-on-feature-detection.patch" Content-Transfer-Encoding: base64 RnJvbSA0NmRiNTNjZWJlZjU2NDRiZTRhYmQ4ZGNiMThjYTc3N2VjMGMzYmUzIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBNYXggTmlrdWxpbiA8bWFuaWt1bGluQGdtYWlsLmNv bT4KRGF0ZTogVGh1LCAyIE1heSAyMDI0IDE3OjA5OjEwICswNzAwClN1YmplY3Q6IFtQQVRD SF0gdGVzdC1vYi1zaGVsbC5lbDogU2tpcCBiYXNlZCBvbiBmZWF0dXJlIGRldGVjdGlvbgoK KiB0ZXN0aW5nL2xpc3AvdGVzdC1vYi1zaGVsbC5lbCAodGVzdC1vYi1zaGVsbC9iYXNoLXVz ZXMtYXNzb2MtYXJyYXlzKQ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