Skip to content

Commit

Permalink
test: add build magic comment test use syscall package
Browse files Browse the repository at this point in the history
Signed-off-by: Koichi Shiraishi <[email protected]>
  • Loading branch information
zchee committed Nov 10, 2016
1 parent c97ae5a commit 4591ea6
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/syscall.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Copyright 2016 Koichi Shiraishi. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package main

import (
"syscall"

"golang.org/x/sys/unix"
)

func main() {
syscall.TIOCGETA
unix.TIOCGE
}
15 changes: 15 additions & 0 deletions tests/syscall_linux.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright 2016 Koichi Shiraishi. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build linux

package main

import (
"golang.org/x/sys/unix"
)

func main() {
unix.TCGETS
}
13 changes: 13 additions & 0 deletions tests/syscall_windows.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Copyright 2016 Koichi Shiraishi. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build windows

package main

import "golang.org/x/sys/windows"

func main() {
windows.
}

0 comments on commit 4591ea6

Please sign in to comment.