Skip to content

Commit 5311391

Browse files
authored
Test multiple process waits. (#273)
1 parent b013f4d commit 5311391

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/kernel.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,13 @@
3535
expect(`sleep 0.01; echo OK`).to be == "OK\n"
3636
expect($?).to be(:success?)
3737
end
38+
39+
it "can echo several times" do
40+
10.times do
41+
expect(`echo test`).to be == "test\n"
42+
expect($?).to be(:success?)
43+
expect($?.inspect).to be =~ /exit 0/
44+
end
45+
end
3846
end
3947
end

0 commit comments

Comments
 (0)