Merge pull request #10 from LK4D4/fix_panic_in_tests

Fix panic in seccomp test on error
This commit is contained in:
Michael Crosby 2015-06-23 11:32:29 -07:00
commit a89dd6cc74
1 changed files with 3 additions and 0 deletions

View File

@ -812,6 +812,9 @@ func TestSeccompNoChown(t *testing.T) {
if err == nil {
t.Fatal("running chown in a container should fail")
}
if buffers == nil {
t.Fatalf("Container wasn't even created: %v", err)
}
if s := buffers.String(); !strings.Contains(s, "not permitted") {
t.Fatalf("running chown should result in an EPERM but got %q", s)
}