@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// +build race
+// +build plan9,race
package plan9
-// +build !race
+// +build plan9,!race
@@ -2,6 +2,8 @@
+// +build plan9
+
func itoa(val int) string { // do it here rather than with fmt to avoid dependency
// Package plan9 contains an interface to the low-level operating system
// primitives. OS details vary depending on the underlying system, and
// by default, godoc will display the OS-specific documentation for the current
package plan9_test
import (
@@ -11,7 +11,8 @@ import (
"net"
"os"
"testing"
- "unix"
+ "code.google.com/p/go.sys/unix"
)
// TestSCMCredentials tests the sending and receiving of credentials
@@ -4,6 +4,8 @@
+// +build darwin dragonfly freebsd linux netbsd openbsd
package unix
import "unsafe"
@@ -264,7 +264,7 @@ package $package
EOF
-print "import \"unix\"\n" if $package ne "unix";
+print "import \"code.google.com/p/go.sys/unix\"\n" if $package ne "unix";
print <<EOF;
@@ -8,7 +8,8 @@ package unix_test
func TestMmap(t *testing.T) {
+// +build darwin,race dragonfly,race freebsd,race linux,race netbsd,race openbsd,race
+// +build darwin,!race dragonfly,!race freebsd,!race linux,!race netbsd,!race openbsd,!race
// Package unix contains an interface to the low-level operating system
// by default, godoc will display OS-specific documentation for the current
const MNT_WAIT = 1
@@ -2,11 +2,14 @@
package unix_test
func testSetGetenv(t *testing.T, key, value string) {
@@ -17,7 +17,8 @@ import (
"runtime"
"time"
// Tests that below functions, structures and constants are consistent
@@ -661,7 +661,7 @@ const srcTemplate = `
package {{packagename}}
import "unsafe"{{if windowsdot}}
-import "windows"{{end}}
+import "code.google.com/p/go.sys/windows"{{end}}
var (
{{template "dlls" .}}
+// +build windows,race
package windows
+// +build windows,!race
+// +build windows
// Package windows contains an interface to the low-level operating system
package windows_test
- "windows"
+ "code.google.com/p/go.sys/windows"
@@ -9,7 +9,8 @@ import (
"path/filepath"
func TestWin32finddata(t *testing.T) {