File: 0009-skip-test-file_test.go.patch

package info (click to toggle)
runc 1.1.5%2Bds1-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-backports
  • size: 3,048 kB
  • sloc: sh: 1,847; ansic: 1,434; makefile: 138
file content (22 lines) | stat: -rw-r--r-- 725 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Shengjing Zhu <zhsj@debian.org>
Date: Wed, 29 Mar 2023 17:30:22 +0800
Subject: skip test: file_test.go

Fail when cgroups is not mounted
---
 libcontainer/cgroups/file_test.go | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libcontainer/cgroups/file_test.go b/libcontainer/cgroups/file_test.go
index dc2b063..a38fa88 100644
--- a/libcontainer/cgroups/file_test.go
+++ b/libcontainer/cgroups/file_test.go
@@ -41,6 +41,8 @@ func TestWriteCgroupFileHandlesInterrupt(t *testing.T) {
 }
 
 func TestOpenat2(t *testing.T) {
+	t.Skip("need to mount cgroupfs")
+
 	if !IsCgroup2UnifiedMode() {
 		// The reason is many test cases below test opening files from
 		// the top-level directory, where cgroup v1 has no files.