summaryrefslogtreecommitdiffhomepage
path: root/runsc/container/container_test.go
diff options
context:
space:
mode:
authorHoward Zhang <howard.zhang@arm.com>2020-09-23 15:42:53 +0800
committerHoward Zhang <howard.zhang@arm.com>2020-09-25 14:48:37 +0800
commitd47209b86d2feef9f7dade78fcb85911a8596973 (patch)
treede23a9755c5ad802947f575ccdfce071153b3a36 /runsc/container/container_test.go
parent6410e74a9602ecb92813375f45b953ab813cf313 (diff)
fix TestUserLog for multi-arch
based on arch, apply different syscall number for sched_rr_get_interval Signed-off-by: Howard Zhang <howard.zhang@arm.com>
Diffstat (limited to 'runsc/container/container_test.go')
-rw-r--r--runsc/container/container_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/runsc/container/container_test.go b/runsc/container/container_test.go
index ff0e60283..548c68087 100644
--- a/runsc/container/container_test.go
+++ b/runsc/container/container_test.go
@@ -1843,8 +1843,9 @@ func TestUserLog(t *testing.T) {
t.Fatal("error finding test_app:", err)
}
- // sched_rr_get_interval = 148 - not implemented in gvisor.
- spec := testutil.NewSpecWithArgs(app, "syscall", "--syscall=148")
+ // sched_rr_get_interval - not implemented in gvisor.
+ num := strconv.Itoa(syscall.SYS_SCHED_RR_GET_INTERVAL)
+ spec := testutil.NewSpecWithArgs(app, "syscall", "--syscall="+num)
conf := testutil.TestConfig(t)
_, bundleDir, cleanup, err := testutil.SetupContainer(spec, conf)
if err != nil {