summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/sentry')
-rw-r--r--pkg/sentry/control/proc_test.go8
-rw-r--r--pkg/sentry/kernel/semaphore/semaphore_test.go8
2 files changed, 8 insertions, 8 deletions
diff --git a/pkg/sentry/control/proc_test.go b/pkg/sentry/control/proc_test.go
index 18286496f..22c826236 100644
--- a/pkg/sentry/control/proc_test.go
+++ b/pkg/sentry/control/proc_test.go
@@ -38,7 +38,7 @@ func TestProcessListTable(t *testing.T) {
},
{
pl: []*Process{
- &Process{
+ {
UID: 0,
PID: 0,
PPID: 0,
@@ -47,7 +47,7 @@ func TestProcessListTable(t *testing.T) {
Time: "0",
Cmd: "zero",
},
- &Process{
+ {
UID: 1,
PID: 1,
PPID: 1,
@@ -83,7 +83,7 @@ func TestProcessListJSON(t *testing.T) {
},
{
pl: []*Process{
- &Process{
+ {
UID: 0,
PID: 0,
PPID: 0,
@@ -92,7 +92,7 @@ func TestProcessListJSON(t *testing.T) {
Time: "0",
Cmd: "zero",
},
- &Process{
+ {
UID: 1,
PID: 1,
PPID: 1,
diff --git a/pkg/sentry/kernel/semaphore/semaphore_test.go b/pkg/sentry/kernel/semaphore/semaphore_test.go
index 0386586ab..1c6a2e1e9 100644
--- a/pkg/sentry/kernel/semaphore/semaphore_test.go
+++ b/pkg/sentry/kernel/semaphore/semaphore_test.go
@@ -57,7 +57,7 @@ func TestBasic(t *testing.T) {
ctx := contexttest.Context(t)
set := &Set{ID: 123, sems: make([]sem, 1)}
ops := []linux.Sembuf{
- linux.Sembuf{SemOp: 1},
+ {SemOp: 1},
}
executeOps(ctx, t, set, ops, false)
@@ -78,7 +78,7 @@ func TestWaitForZero(t *testing.T) {
ctx := contexttest.Context(t)
set := &Set{ID: 123, sems: make([]sem, 1)}
ops := []linux.Sembuf{
- linux.Sembuf{SemOp: 0},
+ {SemOp: 0},
}
executeOps(ctx, t, set, ops, false)
@@ -117,7 +117,7 @@ func TestNoWait(t *testing.T) {
ctx := contexttest.Context(t)
set := &Set{ID: 123, sems: make([]sem, 1)}
ops := []linux.Sembuf{
- linux.Sembuf{SemOp: 1},
+ {SemOp: 1},
}
executeOps(ctx, t, set, ops, false)
@@ -146,7 +146,7 @@ func TestUnregister(t *testing.T) {
}
ops := []linux.Sembuf{
- linux.Sembuf{SemOp: -1},
+ {SemOp: -1},
}
chs := make([]chan struct{}, 0, 5)
for i := 0; i < 5; i++ {