Merge pull request #423 from rajasec/xattr-testfix

Fixing xattr test step issue
This commit is contained in:
Mrunal Patel 2015-11-30 08:48:15 -08:00
commit e12572b900
1 changed files with 3 additions and 2 deletions

View File

@ -9,12 +9,13 @@ import (
"github.com/opencontainers/runc/libcontainer/xattr"
)
func testXattr(t *testing.T) {
func TestXattr(t *testing.T) {
tmp := "xattr_test"
out, err := os.OpenFile(tmp, os.O_WRONLY, 0)
out, err := os.OpenFile(tmp, os.O_WRONLY|os.O_CREATE, 0)
if err != nil {
t.Fatal("failed")
}
defer os.Remove(tmp)
attr := "user.test"
out.Close()