Skip to content
Snippets Groups Projects
Commit 85524dcd authored by Lars Kanis's avatar Lars Kanis
Browse files

add FXApp#addInput test with IO#popen

parent e2df3f10
No related branches found
No related tags found
No related merge requests found
...@@ -33,11 +33,11 @@ class TC_FXApp2 < TestCase ...@@ -33,11 +33,11 @@ class TC_FXApp2 < TestCase
pipe_wr.write " " pipe_wr.write " "
end end
app.run app.run
assert data_sent, "the read input event shouldn't fire before some data is available"
app.removeInput(pipe_rd, INPUT_READ) app.removeInput(pipe_rd, INPUT_READ)
pipe_wr.close pipe_wr.close
pipe_rd.close pipe_rd.close unless pipe_rd.closed?
assert data_sent, "the read input event shouldn't fire before some data is available"
end end
def test_addInput_on_pipe def test_addInput_on_pipe
...@@ -52,4 +52,9 @@ class TC_FXApp2 < TestCase ...@@ -52,4 +52,9 @@ class TC_FXApp2 < TestCase
check_events pipe_rd, pipe_wr check_events pipe_rd, pipe_wr
end end
def test_addInput_on_popen
pipe_rdwr = IO.popen("cat", "r+")
check_events pipe_rdwr, pipe_rdwr
end
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment