Fixing xattr test step issue

Signed-off-by: Rajasekaran <rajasec79@gmail.com>
This commit is contained in:
Rajasekaran 2015-11-29 09:24:42 +05:30
parent 36015470c2
commit 49ff2711e1
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()