]> git.eshelyaron.com Git - emacs.git/commitdiff
Port dest-mountpoint test to suspicious bwrap
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 31 Jan 2025 22:42:33 +0000 (14:42 -0800)
committerEshel Yaron <me@eshelyaron.com>
Mon, 3 Feb 2025 11:11:45 +0000 (12:11 +0100)
* 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.

(cherry picked from commit c1006565184b945aaf5c7d98afe6ee97e6cdb090)

test/lisp/emacs-lisp/bytecomp-tests.el

index f70c67875cfddcf71c5dddcf5a79737fb924c718..25e5f483f4b03a997149ded7bb3ee75a411f3577 100644 (file)
@@ -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