aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Unterwurzacher2019-05-01 18:30:16 +0200
committerJakob Unterwurzacher2019-05-01 18:30:16 +0200
commit8d083e61f4624a4db324ac5ef4c08fb12d5bc801 (patch)
treeb2dcf3f85855de5029daebe4c5fe1d1476fc01bb
parente22c8ea0bd9b1670d4ab2bb4c810119f43f16f40 (diff)
tests: root_test: also test file creation
-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)
+ }
}