构建Go from source时测试失败

时间:2014-06-13 04:08:09

标签: go

当我从源代码构建Golang时,我无法传递构建测试:

hg clone -u release https://code.google.com/p/go
cd go/src
./all.bash

....
ok      net/url 0.005s
ok      os  0.595s
--- FAIL: TestExtraFiles (0.12 seconds)
exec_test.go:230: TestExtraFiles: Something already leaked - closed fd 3
exec_test.go:403: Run: exit status 1; stdout "leaked parent file. fd = 10; want 9\n", stderr ""
FAIL
FAIL    os/exec 0.822s
ok      os/signal   0.511s

请帮忙。这是在我的webfaction共享机器上。

[~] lsb_release -a
LSB Version:    :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch
Distributor ID: CentOS
Description:    CentOS release 5.10 (Final)
Release:    5.10
Codename:   Final

1 个答案:

答案 0 :(得分:2)

根据issue 3001,CentOS 5 / RHEL 5中存在一个错误,基本上内核忽略了O_CLOEXEC

所以要么忽略错误(坏主意),要么转移到更新的Linux版本。