From c1006565184b945aaf5c7d98afe6ee97e6cdb090 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 31 Jan 2025 14:42:33 -0800 Subject: [PATCH] Port dest-mountpoint test to suspicious bwrap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * test/lisp/emacs-lisp/bytecomp-tests.el: (bytecomp-tests--dest-mountpoint): Skip test if bwrap prohibits even ‘true’, which it does on my Ubuntu 24.10 platform. --- test/lisp/emacs-lisp/bytecomp-tests.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/lisp/emacs-lisp/bytecomp-tests.el b/test/lisp/emacs-lisp/bytecomp-tests.el index f70c67875cf..25e5f483f4b 100644 --- a/test/lisp/emacs-lisp/bytecomp-tests.el +++ b/test/lisp/emacs-lisp/bytecomp-tests.el @@ -1736,6 +1736,12 @@ mountpoint (Bug#44631)." (set-file-modes input-file #o400) (set-file-modes output-file #o200) (set-file-modes directory #o500) + (skip-unless + (zerop (call-process + bwrap nil nil nil + "--ro-bind" "/" "/" + "--bind" unquoted-file unquoted-file + "true"))) (with-temp-buffer (let ((status (call-process bwrap nil t nil