aboutsummaryrefslogtreecommitdiff
path: root/tests/root_test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/root_test')
-rw-r--r--tests/root_test/root_test.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/root_test/root_test.go b/tests/root_test/root_test.go
index 6526fd2..26caafc 100644
--- a/tests/root_test/root_test.go
+++ b/tests/root_test/root_test.go
@@ -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)
+ }
}