tests: root_test: also test file creation

This commit is contained in:
Jakob Unterwurzacher 2019-05-01 18:30:16 +02:00
parent e22c8ea0bd
commit 8d083e61f4
1 changed files with 11 additions and 0 deletions

View File

@ -61,4 +61,15 @@ func TestSupplementaryGroups(t *testing.T) {
if err != nil { if err != nil {
t.Error(err) 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)
}
} }