aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg')
-rw-r--r--pkg/db/db_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/db/db_test.go b/pkg/db/db_test.go
index 7ff69b2b7..9d10ffbed 100644
--- a/pkg/db/db_test.go
+++ b/pkg/db/db_test.go
@@ -138,6 +138,9 @@ func TestOpenInvalid(t *testing.T) {
}
func TestOpenInaccessible(t *testing.T) {
+ if os.Getuid() == 0 {
+ t.Skip("opening inaccessible file won't fail under root")
+ }
f, err := ioutil.TempFile("", "syz-db-test")
if err != nil {
t.Error(err)