diff options
author | Thijs <thijs@thijsschreijer.nl> | 2024-05-23 08:51:31 +0200 |
---|---|---|
committer | Thijs <thijs@thijsschreijer.nl> | 2024-05-23 09:05:07 +0200 |
commit | 9f6958c429627190917f742f46a3ae60ed6e7ca0 (patch) | |
tree | 9c2e6fb0a4bb952de1d66a851bbfcb34cfddf4c1 /spec | |
parent | 7e9447c98588730738724176d9acc595be6299e6 (diff) | |
download | luasystem-9f6958c429627190917f742f46a3ae60ed6e7ca0.zip |
Windows fixes, some manual tests
Diffstat (limited to 'spec')
-rw-r--r-- | spec/04-term_spec.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/04-term_spec.lua b/spec/04-term_spec.lua index 50fba45..3711900 100644 --- a/spec/04-term_spec.lua +++ b/spec/04-term_spec.lua @@ -208,7 +208,7 @@ describe("Terminal:", function() describe("tcsetattr()", function() - nix_it("sets the terminal flags, if called with flags", function() + pending("sets the terminal flags, if called with flags", function() assert.equal(true, false) end) @@ -222,14 +222,14 @@ describe("Terminal:", function() it("returns an error if called with an invalid first argument", function() assert.has.error(function() - system.tcsetattr("invalid") + system.tcsetattr("invalid", system.TCSANOW, {}) end, "bad argument #1 to 'tcsetattr' (FILE* expected, got string)") end) it("returns an error if called with an invalid second argument", function() assert.has.error(function() - system.tcsetattr(io.stdin, "invalid") + system.tcsetattr(io.stdin, "invalid", {}) end, "bad argument #2 to 'tcsetattr' (number expected, got string)") end) @@ -241,7 +241,7 @@ describe("Terminal:", function() end) - it("returns an error if iflag is not a bitflags object", function() + it("returns an error if iflag is not a bitflags object #manual", function() local flags = assert(system.tcgetattr(io.stdin)) flags.iflag = 0 assert.has.error(function() @@ -250,7 +250,7 @@ describe("Terminal:", function() end) - it("returns an error if oflag is not a bitflags object", function() + it("returns an error if oflag is not a bitflags object #manual", function() local flags = assert(system.tcgetattr(io.stdin)) flags.oflag = 0 assert.has.error(function() @@ -259,7 +259,7 @@ describe("Terminal:", function() end) - it("returns an error if lflag is not a bitflags object", function() + it("returns an error if lflag is not a bitflags object #manual", function() local flags = assert(system.tcgetattr(io.stdin)) flags.lflag = 0 assert.has.error(function() |