----------------------------------------------------------------------
FAIL: policy_test.go:103: policySuite.TestIterOpBadTargetdir
policy_test.go:105:
c.Check(err, ErrorMatches, `.*unable.*make.*directory.*`)
... error string = "unable to do policyOp(42) for /autopkgtest: not a regular file"
... regex string = ".*unable.*make.*directory.*"
----------------------------------------------------------------------
FAIL: policy_test.go:120: policySuite.TestIterOpInstallBadFilemode
policy_test.go:124:
c.Check(err, ErrorMatches, ".*unable to open.*")
... value = nil
... regex string = ".*unable to open.*"
... Error value is nil
----------------------------------------------------------------------
FAIL: policy_test.go:127: policySuite.TestIterOpInstallBadTarget
policy_test.go:131:
c.Check(err, ErrorMatches, ".*unable to create.*")
... value = nil
... regex string = ".*unable to create.*"
... Error value is nil
----------------------------------------------------------------------
FAIL: policy_test.go:134: policySuite.TestIterOpRemoveBadDirmode
policy_test.go:140:
c.Assert(err, ErrorMatches, ".*unable to remove.*")
... value = nil
... regex string = ".*unable to remove.*"
... Error value is nil
OOPS: 8 passed, 4 FAILED
--- FAIL: Test (0.02s)