(require 'cl-lib)
(require 'ert)
-(require 'ert-x)
(require 'rx)
(require 'subr-x)
+(defconst emacs-tests--lib-src
+ (substitute-in-file-name "$EMACS_TEST_DIRECTORY/../lib-src/")
+ "Location of the lib-src directory.")
+
(ert-deftest emacs-tests/seccomp/absent-file ()
(skip-unless (string-match-p (rx bow "SECCOMP" eow)
system-configuration-features))
system-configuration-features))
(let ((emacs
(expand-file-name invocation-name invocation-directory))
- (filter (ert-resource-file "seccomp-filter.bpf"))
+ (filter (expand-file-name "seccomp-filter.bpf"
+ emacs-tests--lib-src))
(process-environment nil))
(skip-unless (file-executable-p emacs))
(skip-unless (file-readable-p filter))
system-configuration-features))
(let ((emacs
(expand-file-name invocation-name invocation-directory))
- (filter (ert-resource-file "seccomp-filter.bpf"))
+ (filter (expand-file-name "seccomp-filter.bpf"
+ emacs-tests--lib-src))
(process-environment nil))
(skip-unless (file-executable-p emacs))
(skip-unless (file-readable-p filter))
(bwrap (executable-find "bwrap"))
(emacs
(expand-file-name invocation-name invocation-directory))
- (filter (ert-resource-file "seccomp-filter-exec.bpf"))
+ (filter (expand-file-name "seccomp-filter-exec.bpf"
+ emacs-tests--lib-src))
(process-environment nil))
(skip-unless bash)
(skip-unless bwrap)