gcc/libgo/go
Ian Lance Taylor 85c2f96c1c syscall: fix creds_test to reliably close os.File
Uncovered by Uros Bizjak.

Before this patch the test would close the file descriptor but
not the os.File.  When the os.File was GC'ed, the finalizer
would close the file descriptor again.  That would cause
problems if the same file descriptor were returned by a later
call to open in another test.

On my system:

> GOGC=30 go test
--- FAIL: TestPassFD (0.04 seconds)
passfd_test.go:62: 	FileConn: dup: bad file descriptor
FAIL

From-SVN: r192854
2012-10-26 17:50:10 +00:00
..
archive libgo: Update to current sources. 2012-10-23 04:31:11 +00:00
bufio libgo: Update to current sources. 2012-10-23 04:31:11 +00:00
builtin libgo: Update to Go 1.0.3. 2012-10-03 05:27:36 +00:00
bytes libgo: Update to current sources. 2012-10-23 04:31:11 +00:00
compress libgo: Update to current sources. 2012-10-23 04:31:11 +00:00
container libgo: Update to current sources. 2012-10-23 04:31:11 +00:00
crypto libgo: Update to current sources. 2012-10-23 04:31:11 +00:00
database/sql libgo: Update to current sources. 2012-10-23 04:31:11 +00:00
debug libgo: Update to current sources. 2012-10-23 04:31:11 +00:00
encoding libgo: Update to current sources. 2012-10-23 04:31:11 +00:00
errors libgo: Update to weekly.2012-02-22 release. 2012-03-02 20:01:37 +00:00
exp libgo: Update to current sources. 2012-10-23 04:31:11 +00:00
expvar libgo: Update to weekly.2012-03-13. 2012-03-30 21:27:11 +00:00
flag libgo: Update to Go 1.0.3. 2012-10-03 05:27:36 +00:00
fmt libgo: Update to current sources. 2012-10-23 04:31:11 +00:00
go libgo: Update to current sources. 2012-10-23 04:31:11 +00:00
hash libgo: Update to current sources. 2012-10-23 04:31:11 +00:00
html libgo: Update to current sources. 2012-10-23 04:31:11 +00:00
image libgo: Update to current sources. 2012-10-23 04:31:11 +00:00
index/suffixarray libgo: Update to weekly.2012-03-22. 2012-03-30 22:09:55 +00:00
io libgo: Update to current sources. 2012-10-23 04:31:11 +00:00
log libgo: Update to Go 1.0.3. 2012-10-03 05:27:36 +00:00
math libgo: Update to current sources. 2012-10-23 04:31:11 +00:00
mime libgo: Update to current sources. 2012-10-23 04:31:11 +00:00
net libgo: Solaris portability patches. 2012-10-25 18:26:34 +00:00
old libgo: Update to weekly.2012-02-22 release. 2012-03-02 20:01:37 +00:00
os libgo: Update to current sources. 2012-10-23 04:31:11 +00:00
path libgo: Update to current sources. 2012-10-23 04:31:11 +00:00
reflect libgo: Update to current sources. 2012-10-23 04:31:11 +00:00
regexp libgo: Update to current sources. 2012-10-23 04:31:11 +00:00
runtime runtime: Disable crash tests that runs go tool. 2012-10-23 18:01:06 +00:00
sort libgo: Update to weekly.2012-03-22. 2012-03-30 22:09:55 +00:00
strconv libgo: Update to current sources. 2012-10-23 04:31:11 +00:00
strings libgo: Update to current sources. 2012-10-23 04:31:11 +00:00
sync libgo: Update to current sources. 2012-10-23 04:31:11 +00:00
syscall syscall: fix creds_test to reliably close os.File 2012-10-26 17:50:10 +00:00
testing libgo: Update to current sources. 2012-10-23 04:31:11 +00:00
text libgo: Update to current sources. 2012-10-23 04:31:11 +00:00
time libgo: Update to current sources. 2012-10-23 04:31:11 +00:00
unicode libgo: Update to current sources. 2012-10-23 04:31:11 +00:00