tests: root_test: also test file creation
This commit is contained in:
parent
e22c8ea0bd
commit
8d083e61f4
@ -61,4 +61,15 @@ func TestSupplementaryGroups(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
|
||||
err = asUser(1235, 1235, []int{1234}, func() error {
|
||||
f, err := os.Create(dir1 + "/file1")
|
||||
if err == nil {
|
||||
f.Close()
|
||||
}
|
||||
return err
|
||||
})
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user