summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2026-06-14 18:41:17 +0200
committerLudovic Courtès <ludo@gnu.org>2026-06-18 16:46:53 +0200
commit47156e7abc45c50a3a52e7ac05698871555440fe (patch)
tree9f054dd6dd6620e3b8a920949f71372285c058a0 /tests
parentc263c41668a4071e981fcfae3faa4b6ce741fb46 (diff)
tests: Skip container tests that call ‘primitive-fork’ in a ‘safe-clone’ child.
This works around guix/guix#7690 whereby calling ‘primitive-fork’ from a child process created with ‘safe-clone’ causes said child process to hang. * tests/containers.scm ("call-with-container, pid namespace") ("container-excursion") ("container-excursion, same namespaces") ("container-excursion*") ("container-excursion*, /proc"): Skip. Change-Id: Ieb49a5c5e3e92cff40f6dd2472d0cb177680d9f4 Signed-off-by: Ludovic Courtès <ludo@gnu.org> Merges: #9085
Diffstat (limited to 'tests')
-rw-r--r--tests/containers.scm18
1 files changed, 12 insertions, 6 deletions
diff --git a/tests/containers.scm b/tests/containers.scm
index 6edea9631dc..75bf492cd59 100644
--- a/tests/containers.scm
+++ b/tests/containers.scm
@@ -82,7 +82,8 @@
82 (primitive-exit 0)) 82 (primitive-exit 0))
83 #:namespaces '(user uts)))) 83 #:namespaces '(user uts))))
84 84
85(skip-if-unsupported) 85;; (skip-if-unsupported)
86(test-skip 1) ;XXX: work around <https://codeberg.org/guix/guix/issues/7690>
86(test-assert "call-with-container, pid namespace" 87(test-assert "call-with-container, pid namespace"
87 (zero? 88 (zero?
88 (call-with-container '() 89 (call-with-container '()
@@ -188,7 +189,8 @@
188 #:writable-root? #t 189 #:writable-root? #t
189 #:namespaces '(user mnt)))) 190 #:namespaces '(user mnt))))
190 191
191(skip-if-unsupported) 192;; (skip-if-unsupported)
193(test-skip 1) ;XXX: work around <https://codeberg.org/guix/guix/issues/7690>
192(test-equal "container-excursion" 194(test-equal "container-excursion"
193 0 195 0
194 (call-with-temporary-directory 196 (call-with-temporary-directory
@@ -240,7 +242,8 @@
240 (waitpid pid) 242 (waitpid pid)
241 result)))))) 243 result))))))
242 244
243(skip-if-unsupported) 245;; (skip-if-unsupported)
246(test-skip 1) ;XXX: work around <https://codeberg.org/guix/guix/issues/7690>
244(test-equal "container-excursion, same namespaces" 247(test-equal "container-excursion, same namespaces"
245 42 248 42
246 ;; The parent and child are in the same namespaces. 'container-excursion' 249 ;; The parent and child are in the same namespaces. 'container-excursion'
@@ -250,7 +253,8 @@
250 (lambda () 253 (lambda ()
251 (primitive-exit 42))))) 254 (primitive-exit 42)))))
252 255
253(skip-if-unsupported) 256;; (skip-if-unsupported)
257(test-skip 1) ;XXX: work around <https://codeberg.org/guix/guix/issues/7690>
254(test-assert "container-excursion*" 258(test-assert "container-excursion*"
255 (call-with-temporary-directory 259 (call-with-temporary-directory
256 (lambda (root) 260 (lambda (root)
@@ -271,14 +275,16 @@
271 (kill pid SIGKILL) 275 (kill pid SIGKILL)
272 (equal? result expected))))) 276 (equal? result expected)))))
273 277
274(skip-if-unsupported) 278;; (skip-if-unsupported)
279(test-skip 1) ;XXX: work around <https://codeberg.org/guix/guix/issues/7690>
275(test-equal "container-excursion*, same namespaces" 280(test-equal "container-excursion*, same namespaces"
276 42 281 42
277 (container-excursion* (getpid) 282 (container-excursion* (getpid)
278 (lambda () 283 (lambda ()
279 (* 6 7)))) 284 (* 6 7))))
280 285
281(skip-if-unsupported) 286;; (skip-if-unsupported)
287(test-skip 1) ;XXX: work around <https://codeberg.org/guix/guix/issues/7690>
282(test-equal "container-excursion*, /proc" 288(test-equal "container-excursion*, /proc"
283 '("1" "2") 289 '("1" "2")
284 (call-with-temporary-directory 290 (call-with-temporary-directory