diff -r 158890b70d33 libgo/go/syscall/creds_test.go
--- a/libgo/go/syscall/creds_test.go	Thu Oct 25 11:25:35 2012 -0700
+++ b/libgo/go/syscall/creds_test.go	Fri Oct 26 10:38:15 2012 -0700
@@ -31,14 +31,18 @@
 		t.Fatalf("SetsockoptInt: %v", err)
 	}
 
-	srv, err := net.FileConn(os.NewFile(uintptr(fds[0]), ""))
+	srvFile := os.NewFile(uintptr(fds[0]), "server")
+	defer srvFile.Close()
+	srv, err := net.FileConn(srvFile)
 	if err != nil {
 		t.Errorf("FileConn: %v", err)
 		return
 	}
 	defer srv.Close()
 
-	cli, err := net.FileConn(os.NewFile(uintptr(fds[1]), ""))
+	cliFile := os.NewFile(uintptr(fds[1]), "client")
+	defer cliFile.Close()
+	cli, err := net.FileConn(cliFile)
 	if err != nil {
 		t.Errorf("FileConn: %v", err)
 		return
