summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-09-25 14:11:51 -0700
committergVisor bot <gvisor-bot@google.com>2020-09-25 14:11:51 -0700
commitf2b469916ee2fc802a72ff808a5c5735263fb7c7 (patch)
treed521ecfcbe3a18a21b5793c82a95394017440993
parent74870fc203e373d8258dfb6cb1fa0f78cb090062 (diff)
parentae1141778ecb336ef59a25556d7f382da3613756 (diff)
Merge pull request #4077 from zhlhahaha:1973
PiperOrigin-RevId: 333805533
-rw-r--r--runsc/container/container_test.go5
-rw-r--r--runsc/specutils/seccomp/seccomp_test.go2
2 files changed, 4 insertions, 3 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 {
diff --git a/runsc/specutils/seccomp/seccomp_test.go b/runsc/specutils/seccomp/seccomp_test.go
index 2079cd2e9..850c237ba 100644
--- a/runsc/specutils/seccomp/seccomp_test.go
+++ b/runsc/specutils/seccomp/seccomp_test.go
@@ -169,7 +169,7 @@ var (
},
},
},
- input: testInput(nativeArchAuditNo, "open", nil),
+ input: testInput(nativeArchAuditNo, "openat", nil),
expected: uint32(allowAction),
},
{