diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/cbmbasic.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Library/Formula/cbmbasic.rb b/Library/Formula/cbmbasic.rb index f13b9a18b..591ebb825 100644 --- a/Library/Formula/cbmbasic.rb +++ b/Library/Formula/cbmbasic.rb @@ -10,7 +10,11 @@ class Cbmbasic < Formula bin.install 'cbmbasic' end - def test - system "echo \"PRINT 1\" | #{bin}/cbmbasic" + test do + IO.popen("#{bin}/cbmbasic", "w+") do |pipe| + pipe.write("PRINT 1\n") + pipe.close_write + /READY.\r\n 1/ === pipe.read + end end end |
