Merge pull request #423 from rajasec/xattr-testfix
Fixing xattr test step issue
This commit is contained in:
commit
e12572b900
|
@ -9,12 +9,13 @@ import (
|
||||||
"github.com/opencontainers/runc/libcontainer/xattr"
|
"github.com/opencontainers/runc/libcontainer/xattr"
|
||||||
)
|
)
|
||||||
|
|
||||||
func testXattr(t *testing.T) {
|
func TestXattr(t *testing.T) {
|
||||||
tmp := "xattr_test"
|
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 {
|
if err != nil {
|
||||||
t.Fatal("failed")
|
t.Fatal("failed")
|
||||||
}
|
}
|
||||||
|
defer os.Remove(tmp)
|
||||||
attr := "user.test"
|
attr := "user.test"
|
||||||
out.Close()
|
out.Close()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue