isatty_others_test.go 273 B

12345678910111213141516171819
  1. // +build !windows
  2. package isatty
  3. import (
  4. "os"
  5. "testing"
  6. )
  7. func TestTerminal(t *testing.T) {
  8. // test for non-panic
  9. IsTerminal(os.Stdout.Fd())
  10. }
  11. func TestCygwinPipeName(t *testing.T) {
  12. if IsCygwinTerminal(os.Stdout.Fd()) {
  13. t.Fatal("should be false always")
  14. }
  15. }