Skip to content

Commit

Permalink
test-tty: Don't depend on stdin/stdout handle type
Browse files Browse the repository at this point in the history
Closes #687
  • Loading branch information
squeek502 committed Jan 23, 2024
1 parent adff530 commit 3e7182b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions tests/test-tty.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,9 @@ end
return require('lib/tap')(function (test)

test("tty normal", function (print, p, expect, uv)
-- uv.tty_set_vterm_state("supported")
-- print(uv.tty_get_vterm_state())

local stdin = uv.new_tty(0, true)
local stdout = uv.new_tty(1, false)

local stype = os.getenv('GITHUB_ACTION') and 'pipe' or 'tty'

assert(stype == uv.guess_handle(0))
assert(stype == uv.guess_handle(1))
assert(uv.is_readable(stdin))
assert(uv.is_writable(stdout))

Expand Down

0 comments on commit 3e7182b

Please sign in to comment.