From 8d083e61f4624a4db324ac5ef4c08fb12d5bc801 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Wed, 1 May 2019 18:30:16 +0200 Subject: tests: root_test: also test file creation --- tests/root_test/root_test.go | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests') 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) + } } -- cgit v1.2.3